Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Dec 15, 2023
1 parent 39947cd commit bce5743
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AssetTransferApi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
2 changes: 2 additions & 0 deletions src/AssetTransferApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit bce5743

Please sign in to comment.