We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey there,
I was configuring cosmoskit with a local chain and I keep getting a weird error with keplr wallet.
Error: Broadcasting transaction failed with code 4 (codespace: sdk). Log: signature verification failed; please verify account number (3), sequence (3) and chain-id (local): unauthorized
and this is the config code.
const defaultConfig = { gasPrice: GasPrice.fromString("0.03ulocal"), }; const signerOptions: SignerOptions = { signingStargate: (_chain: Chain) => { return { ...getSigningLocalClientOptions({ defaultTypes: defaultRegistryTypes, }), gasPrice: defaultConfig.gasPrice, }; }, signingCosmwasm: (chain: Chain) => { switch (chain.chain_name) { case localChain.chain_name: return defaultConfig; } }, }; export const CosmosKitProvider = ({ children }: Props) => { return ( <ChainProvider chains={[localChain]} assetLists={[localAssets]} wallets={wallets} signerOptions={signerOptions} endpointOptions={{ isLazy: true, endpoints: { local: { rpc: [process.env.NEXT_PUBLIC_CHAIN_RPC_ENDPOINT], rest: [process.env.NEXT_PUBLIC_CHAIN_ENDPOINT], }, }, }} > {children} </ChainProvider> ); };
Do you have an idea why?
The text was updated successfully, but these errors were encountered:
"signature verification failed" can have dozens of different reasons in the signing process.
What's your chain ID? Is it really "local"?
Sorry, something went wrong.
New update :)
it's working when I use "direct" instead of "amino" as a signerType.
No branches or pull requests
Hey there,
I was configuring cosmoskit with a local chain and I keep getting a weird error with keplr wallet.
and this is the config code.
Do you have an idea why?
The text was updated successfully, but these errors were encountered: