From 88842cceac3285ad9547edd52c95bab74e2564f0 Mon Sep 17 00:00:00 2001 From: tarikgul Date: Wed, 17 Jul 2024 18:01:54 -0400 Subject: [PATCH] Fix toHuman error on mode --- packages/types/src/extrinsic/Extrinsic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/extrinsic/Extrinsic.ts b/packages/types/src/extrinsic/Extrinsic.ts index 1bd806c8724a..6695ff56aaa8 100644 --- a/packages/types/src/extrinsic/Extrinsic.ts +++ b/packages/types/src/extrinsic/Extrinsic.ts @@ -341,7 +341,7 @@ export class GenericExtrinsic extends ExtrinsicBa assetId: this.assetId ? this.assetId.toHuman(isExpanded, disableAscii) : null, era: this.era.toHuman(isExpanded, disableAscii), metadataHash: this.metadataHash ? this.metadataHash.toHex() : null, - mode: this.mode.toHuman(), + mode: this.mode ? this.mode.toHuman() : null, nonce: this.nonce.toHuman(isExpanded, disableAscii), signature: this.signature.toHex(), signer: this.signer.toHuman(isExpanded, disableAscii),