Skip to content

Commit eacb5a2

Browse files
committed
chore: fix tests
1 parent 3d5697e commit eacb5a2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/tests-rosetta/api.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ describe('Rosetta API', () => {
200200
const blockHeight = 2;
201201
const tx = {
202202
type_id: DbTxTypeId.Coinbase,
203-
anchor_mode: AnchorMode.OnChainOnly,
203+
anchor_mode: DbTxAnchorMode.OnChainOnly,
204204
status: DbTxStatus.Success,
205205
sender_address: 'ST2N3HQ5BZV43J0ZZY4X6T50NTQTQBMZ3AVRQ86A',
206-
coinbase_payload: Buffer.alloc(0)
206+
coinbase_payload: ''
207207
}
208208
const parentData = new TestBlockBuilder().addTx().build();
209209
const data = new TestBlockBuilder({
@@ -261,10 +261,10 @@ describe('Rosetta API', () => {
261261
const blockHeight = 2;
262262
const tx = {
263263
type_id: DbTxTypeId.Coinbase,
264-
anchor_mode: AnchorMode.OnChainOnly,
264+
anchor_mode: DbTxAnchorMode.OnChainOnly,
265265
status: DbTxStatus.Success,
266266
sender_address: 'ST2N3HQ5BZV43J0ZZY4X6T50NTQTQBMZ3AVRQ86A',
267-
coinbase_payload: Buffer.alloc(0)
267+
coinbase_payload: ''
268268
}
269269
const parentData = new TestBlockBuilder().addTx().build();
270270
const data = new TestBlockBuilder({
@@ -963,7 +963,7 @@ describe('Rosetta API', () => {
963963
const tx_1 = {
964964
tx_id: '0xa95f0f833cf3b90473a9654526e9cb02626b85f32efae7f05c139d3460225d5f',
965965
type_id: DbTxTypeId.TokenTransfer,
966-
anchor_mode: AnchorMode.Any,
966+
anchor_mode: DbTxAnchorMode.Any,
967967
status: DbTxStatus.Success,
968968
sender_address: 'ST1HB1T8WRNBYB0Y3T7WXZS38NKKPTBR3EG9EPJKR',
969969
event_count: 1,
@@ -976,7 +976,7 @@ describe('Rosetta API', () => {
976976
const tx_2 = {
977977
tx_id: '0xf03f217ebd89d2e0fd9bdf56ad2cc09b42455cd0d3442a4ebbb9f9dbf0dcc6b9',
978978
type_id: DbTxTypeId.TokenTransfer,
979-
anchor_mode: AnchorMode.Any,
979+
anchor_mode: DbTxAnchorMode.Any,
980980
status: DbTxStatus.Success,
981981
sender_address: testAddr1,
982982
event_count: 1,
@@ -989,7 +989,7 @@ describe('Rosetta API', () => {
989989
const tx_3 = {
990990
tx_id: '0xc9d72d08ae48503e93f54b218b9048b1afdb1054f15baa3244490ad41a5a5902',
991991
type_id: DbTxTypeId.TokenTransfer,
992-
anchor_mode: AnchorMode.Any,
992+
anchor_mode: DbTxAnchorMode.Any,
993993
status: DbTxStatus.Success,
994994
sender_address: testAddr1,
995995
event_count: 1,
@@ -1003,7 +1003,7 @@ describe('Rosetta API', () => {
10031003
const tx_4 = {
10041004
tx_id: '0x552e94a0d57683fd8b8e4dfa5c807096e1fa7b6ab67f651f735b9d5e3c8bea93',
10051005
type_id: DbTxTypeId.TokenTransfer,
1006-
anchor_mode: AnchorMode.Any,
1006+
anchor_mode: DbTxAnchorMode.Any,
10071007
status: DbTxStatus.Success,
10081008
sender_address: testAddr1,
10091009
event_count: 1,
@@ -1166,7 +1166,7 @@ describe('Rosetta API', () => {
11661166
const tx_1 = {
11671167
tx_id: '0xa95f0f833cf3b90473a9654526e9cb02626b85f32efae7f05c139d3460225d5f',
11681168
type_id: DbTxTypeId.TokenTransfer,
1169-
anchor_mode: AnchorMode.Any,
1169+
anchor_mode: DbTxAnchorMode.Any,
11701170
status: DbTxStatus.Success,
11711171
sender_address: senderAddr,
11721172
event_count: 1,

0 commit comments

Comments
 (0)