Change assetId type in SignerPayloadJSON to HexString (#5967)

* Change assetId type in SignerPayloadJSON to HexString

* fix encoding

* Fix tests

* also fix createClass
This commit is contained in:
Tarik Gul
2024-09-02 13:24:06 -04:00
committed by GitHub
parent 25ab1d1239
commit 1e604cc5fb
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -348,7 +348,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
const ext = this.registry.createTypeUnsafe<Extrinsic>('Extrinsic', [result.signedTransaction]);
const newSignerPayload = this.registry.createTypeUnsafe<SignerPayload>('SignerPayload', [objectSpread({}, {
address,
assetId: ext.assetId ? ext.assetId.toHex() : null,
assetId: ext.assetId && ext.assetId.isSome ? ext.assetId.unwrap().toHex() : null,
blockHash: payload.blockHash,
blockNumber: header ? header.number : 0,
era: ext.era.toHex(),