diff --git a/src/AssetTransferApi.spec.ts b/src/AssetTransferApi.spec.ts index 2954e1b1..65625b93 100644 --- a/src/AssetTransferApi.spec.ts +++ b/src/AssetTransferApi.spec.ts @@ -729,11 +729,15 @@ describe('AssetTransferAPI', () => { }, ); + console.log('PAYLOAD', payload); + const result = mockSystemApi.registry.createType('ExtrinsicPayload', payload.tx, { version: 4, }); + console.log('RESULT TO HUMAN', result.toHuman()); const unsigned = result.toHuman() as unknown as UnsignedTransaction; + console.log('UNSIGNED IN TEST', unsigned); expect(unsigned.assetId).toStrictEqual(expected); }); diff --git a/src/AssetTransferApi.ts b/src/AssetTransferApi.ts index 08dd5c43..bc231ff1 100644 --- a/src/AssetTransferApi.ts +++ b/src/AssetTransferApi.ts @@ -783,6 +783,8 @@ export class AssetTransferApi { period: 64, }); + console.log('ASSET ID', assetId); + const nonce = await this._api.rpc.system.accountNextIndex(sendersAddr); const unsignedPayload: UnsignedTransaction = { specVersion: this._api.runtimeVersion.specVersion.toHex(),