From 65b019e635230dc1a151f943f17409ff18235576 Mon Sep 17 00:00:00 2001 From: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:11:11 -0700 Subject: [PATCH] Fix toHuman error on mode (#5940) --- 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),