Open dillu24 opened 8 months ago
What kind of message is what which is not working?
@dillu24 did you fixed that? I ensured that my account has native chain amount (a lot - added with genesis) and also that it is not used by other currently running threads, and that my chain id is correct.
it may related to cosmos sdk(chain upgrade) upgrade without client library upgrade: samples of my logs
warning: Git tree '/home/dz/github.com/ComposableFi/composable' is dirty
client 1client 2========================= simulate_order =========================
msg: Order { msg: OrderSubMsg { wants: Coin { 1848 "pdemo" }, transfer: None, timeout: 115, min_fill: None } }
result: Response { check_tx: CheckTx { code: Err(4), data: b"", log: "\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.SigVerificationDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/sigverify.go:302\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.SigGasConsumeDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/sigverify.go:194\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.ValidateSigCountDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/sigverify.go:384\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.SetPubKeyDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/sigverify.go:126\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/notional-labs/composable/v6/app/ante.IBCPermissionDecorator.AnteHandle\n\tgithub.com/notional-labs/composable/v6/app/ante/ibc_ante.go:42\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.ConsumeTxSizeGasDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/basic.go:143\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.ValidateMemoDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/basic.go:67\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.TxTimeoutHeightDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/basic.go:206\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.DeductFeeDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/fee.go:67\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.ConsumeTxSizeGasDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/basic.go:143\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.ValidateBasicDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/basic.go:34\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/x/auth/ante/setup.go:70\ngithub.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/types/handler.go:49\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/baseapp/baseapp.go:696\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).CheckTx\n\tgithub.com/cosmos/cosmos-sdk@v0.47.5/baseapp/abci.go:370\ngithub.com/cometbft/cometbft/abci/client.(*localClient).CheckTxAsync\n\tgithub.com/cometbft/cometbft@v0.37.2/abci/client/local_client.go:93\ngithub.com/cometbft/cometbft/proxy.(*appConnMempool).CheckTxAsync\n\tgithub.com/cometbft/cometbft@v0.37.2/proxy/app_conn.go:154\ngithub.com/cometbft/cometbft/mempool/v0.(*CListMempool).CheckTx\n\tgithub.com/cometbft/cometbft@v0.37.2/mempool/v0/clist_mempool.go:254\ngithub.com/cometbft/cometbft/rpc/core.BroadcastTxCommit\n\tgithub.com/cometbft/cometbft@v0.37.2/rpc/core/mempool.go:89\nreflect.Value.call\n\treflect/value.go:584\nsignature verification failed; please verify account number (4) and chain-id (centauri-dev): unauthorized", info: "", gas_wanted: 1000000000, gas_used: 38445, events: [], codespace: "sdk", sender: "", priority: 0, mempool_error: "" }, tx_result: ExecTxResult { code: Ok, data: b"", log: "", info: "", gas_wanted: 0, gas_used: 0, events: [], codespace: "" }, hash: Hash::Sha256(A03B0FE66603A15CE382648A9840DDECEA4F838DD14EE34F9073BD23184DECCC), height: block::Height(0) }
thread 'main' panicked at /build/source/mantis/node/src/mantis/cosmos/client.rs:134:5:
yes, local devnet with new SDK bad, mainnet is good. so some versioning.
Actually the issue here on my side was that my local chain was not correctly set-up to work with Amino.
@dillu24 how did you solve it? I have the same issue only for amino.
Hi,
I am using Cosmos Kit's keplr
getOfflineAminoSigner
to sign a custom msg encoded using telescope. I am stuck in a CosmJS part whereSignAndBroadcastSync
is throwing me this error:Any idea of what is going wrong? I am encoding the message using
MsgComposer.withTypeUrl
from telescope.