Merge pull request #668 from cosmos/get-sequence-unverified

Simple query to get sequence to sign
This commit is contained in:
Ethan Frey 2021-02-11 11:02:28 +01:00 committed by GitHub
commit 02ede3c8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ export class SigningStargateClient extends StargateClient {
throw new Error("Failed to retrieve account from signer");
}
const pubkey = encodeSecp256k1Pubkey(accountFromSigner.pubkey);
const accountFromChain = await this.getAccount(signerAddress);
const accountFromChain = await this.getAccountUnverified(signerAddress);
if (!accountFromChain) {
throw new Error("Account not found");
}