From 378949cb970dc368bbcf0d34cd1beb947f16d9b4 Mon Sep 17 00:00:00 2001 From: tarikgul Date: Fri, 20 Sep 2024 09:20:56 -0400 Subject: [PATCH] fix typing --- packages/types/src/extrinsic/v5/Extrinsic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/src/extrinsic/v5/Extrinsic.ts b/packages/types/src/extrinsic/v5/Extrinsic.ts index 0ccfcd3eb62..152f8b22bca 100644 --- a/packages/types/src/extrinsic/v5/Extrinsic.ts +++ b/packages/types/src/extrinsic/v5/Extrinsic.ts @@ -95,7 +95,7 @@ export class GenericExtrinsicV5 extends Struct implements IExtrinsicV5Impl { */ public sign (account: IKeyringPair, options: SignatureV5Options): GenericExtrinsicV5 { const subVersionV5 = this.subVersionV5; - const newOpts = objectSpread({}, { ...options, subVersionV5 }); + const newOpts: SignatureV5Options = objectSpread({}, { ...options, subVersionV5 }); this.signature.sign(this.method, account, newOpts); @@ -107,7 +107,7 @@ export class GenericExtrinsicV5 extends Struct implements IExtrinsicV5Impl { */ public signFake (signer: Address | Uint8Array | string, options: SignatureV5Options): GenericExtrinsicV5 { const subVersionV5 = this.subVersionV5; - const newOpts = objectSpread({}, { ...options, subVersionV5 }); + const newOpts: SignatureV5Options = objectSpread({}, { ...options, subVersionV5 }); this.signature.signFake(this.method, signer, newOpts);