Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Sep 20, 2024
1 parent 437b885 commit 378949c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/types/src/extrinsic/v5/Extrinsic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 378949c

Please sign in to comment.