Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
schnetzlerjoe committed Jun 27, 2024
1 parent baa8677 commit 2d26def
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions wallets/cosmos-extension-metamask/src/extension/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ export class CosmosExtensionClient implements WalletClient {
return [await this.getAccount(chainId)];
},
signDirect: async (signerAddress: string, signDoc: SignDoc) =>
await this.signDirect(chainId, signerAddress, {
...signDoc,
accountNumber: BigInt(signDoc.accountNumber.toInt()),
}),
await this.signDirect(chainId, signerAddress, signDoc),
};
}

Expand Down Expand Up @@ -108,9 +105,6 @@ export class CosmosExtensionClient implements WalletClient {
signDoc: DirectSignDoc,
signOptions?: SignOptions
) {
return await this.cosmos.signDirect(chainId, signer, {
...signDoc,
accountNumber: new Long(Number(signDoc.accountNumber.toString())),
});
return await this.cosmos.signDirect(chainId, signer, signDoc);
}
}

0 comments on commit 2d26def

Please sign in to comment.