From e8d45f95fcb7438f699163c673012a83ec125c70 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 24 Nov 2022 10:36:31 +0000 Subject: [PATCH] test: use getApi() --- --- a/tests/src/eth/migration.seqtest.ts +++ b/tests/src/eth/migration.seqtest.ts @@ -127,7 +127,7 @@ }); itEth('Fake collection creation on substrate side', async ({helper}) => { const txInsertEvents = helper.constructApiCall('api.tx.evmMigration.insertEvents', [[ - encodeEvent(helper.api!, 'Common', 'common', 'CollectionCreated', [ + encodeEvent(helper.getApi(), 'Common', 'common', 'CollectionCreated', [ // Collection Id 9999, // Collection mode: NFT @@ -144,7 +144,7 @@ }); itEth('Fake token creation on substrate side', async ({helper}) => { const txInsertEvents = helper.constructApiCall('api.tx.evmMigration.insertEvents', [[ - encodeEvent(helper.api!, 'Common', 'common', 'ItemCreated', [ + encodeEvent(helper.getApi(), 'Common', 'common', 'ItemCreated', [ // Collection Id 9999, // TokenId -- gitstuff