Skip to content
New issue

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

Bug: authz MsgExec not working #417

Closed
george-aj opened this issue Jul 6, 2023 · 0 comments · Fixed by #418
Closed

Bug: authz MsgExec not working #417

george-aj opened this issue Jul 6, 2023 · 0 comments · Fixed by #418
Assignees
Labels
bug Something isn't working

Comments

@george-aj
Copy link

george-aj commented Jul 6, 2023

System Information
Archway Version: Mainnet
Commit Hash: Mainnet
OS & Version: N/A

Expected behavior
MsgExec to broadcast over gRPC

Actual behavior
MsgExec not broadcasting and produces the below panic.

Steps to reproduce
Create a MsgDelegate and put it into a MsgExec and attempt to broadcast over gRPC.

Trace

stack:
goroutine 24962535 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x65
github.com/cosmos/cosmos-sdk/baseapp.newDefaultRecoveryMiddleware.func1({0x1bbdfa0, 0x3591a10})
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/recovery.go:71 +0x27
github.com/cosmos/cosmos-sdk/baseapp.newRecoveryMiddleware.func1({0x1bbdfa0?, 0x3591a10?})
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/recovery.go:39 +0x30
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x1bbdfa0, 0x3591a10}, 0xc082e7d440?)
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/recovery.go:28 +0x37
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x1bbdfa0, 0x3591a10}, 0x2746c70?)
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/recovery.go:33 +0x5e
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/baseapp.go:632 +0x110
panic({0x1bbdfa0, 0x3591a10})
	runtime/panic.go:884 +0x212
github.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle.func1()
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/setup.go:57 +0x1fa
panic({0x1bbdfa0, 0x3591a10})
	runtime/panic.go:884 +0x212
github.com/archway-network/archway/x/rewards/ante.GetContractFlatFees({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/archway-network/archway/x/rewards/ante/ante_utils.go:51 +0x499
github.com/archway-network/archway/x/rewards/ante.MinFeeDecorator.AnteHandle({{_, _}, {_, _}}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, ...}, ...}, ...)
	github.com/archway-network/archway/x/rewards/ante/min_cons_fee.go:44 +0x67b
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.ConsumeTxSizeGasDecorator.AnteHandle({{_, _}}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/basic.go:142 +0x3a6
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.ValidateMemoDecorator.AnteHandle({{_, _}}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/basic.go:66 +0x2ee
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.TxTimeoutHeightDecorator.AnteHandle({}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/basic.go:205 +0x28e
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.ValidateBasicDecorator.AnteHandle({}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/basic.go:34 +0x1ce
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.MempoolFeeDecorator.AnteHandle({}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/fee.go:54 +0x286
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.RejectExtensionOptionsDecorator.AnteHandle({}, {{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/ext.go:35 +0x12e
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737778, 0xc0d644be60}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/CosmWasm/wasmd/x/wasm/keeper.CountTXDecorator.AnteHandle({{_, _}}, {{0x2737708, 0xc000134020}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, ...}, ...}, ...)
	github.com/CosmWasm/wasmd@v0.32.0/x/wasm/keeper/ante.go:48 +0x5b8
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737708, 0xc000134020}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/CosmWasm/wasmd/x/wasm/keeper.LimitSimulationGasDecorator.AnteHandle({_}, {{0x2737708, 0xc000134020}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, ...}, ...}, ...)
	github.com/CosmWasm/wasmd@v0.32.0/x/wasm/keeper/ante.go:87 +0x744
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737708, 0xc000134020}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle({}, {{0x2737708, 0xc000134020}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/ante/setup.go:62 +0x66f
github.com/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1({{0x2737708, 0xc000134020}, {0x2746c70, 0xc09d9e5240}, {{0xb, 0x0}, {0xc10c33dfe1, 0x9}, 0xb848, {0x2a6b8db3, ...}, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/handler.go:40 +0x158
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0xc00055da40, 0x0, {0xc073427500, 0x48d7, 0x4a80})
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/baseapp.go:684 +0x779
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).CheckTx(0xc00055da40, {{0xc073427500?, 0xc02e962a48?, 0xc02e962920?}, 0x46fe4210?})
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/abci.go:244 +0x135
github.com/tendermint/tendermint/abci/client.(*localClient).CheckTxAsync(0xc0024423c0, {{0xc073427500?, 0xd06660?, 0xc005237940?}, 0x46fe4328?})
	github.com/tendermint/tendermint@v0.34.27/abci/client/local_client.go:104 +0x118
github.com/tendermint/tendermint/proxy.(*appConnMempool).CheckTxAsync(0xc005237940?, {{0xc073427500?, 0x0?, 0xb848?}, 0x2a6b8db3?})
	github.com/tendermint/tendermint@v0.34.27/proxy/app_conn.go:126 +0x26
github.com/tendermint/tendermint/mempool/v0.(*CListMempool).CheckTx(0xc000d7d930, {0xc073427500, 0x48d7, 0x4a80}, 0x18?, {0x0?, {0x0?, 0x0?}})
	github.com/tendermint/tendermint@v0.34.27/mempool/v0/clist_mempool.go:254 +0x32d
github.com/tendermint/tendermint/rpc/core.BroadcastTxSync(0xc001240040, {0xc073427500, 0x48d7, 0x4a80})
	github.com/tendermint/tendermint@v0.34.27/rpc/core/mempool.go:36 +0xf6
github.com/tendermint/tendermint/rpc/client/local.(*Local).BroadcastTxSync(0xc0f54c7638?, {0x2737708?, 0xc000134020?}, {0xc073427500?, 0xc09d9d6ac0?, 0xb?})
	github.com/tendermint/tendermint@v0.34.27/rpc/client/local/local.go:99 +0x2b
github.com/cosmos/cosmos-sdk/client.Context.BroadcastTxSync({{0x0, 0x0, 0x0}, {0x2756b80, 0xc001240020}, {0xc00104e2f0, 0x9}, {0x273de98, 0xc000e1c0f0}, {0x274d358, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/client/broadcast.go:116 +0x12e
github.com/cosmos/cosmos-sdk/client.Context.BroadcastTx({{0x0, 0x0, 0x0}, {0x2756b80, 0xc001240020}, {0xc00104e2f0, 0x9}, {0x273de98, 0xc000e1c0f0}, {0x274d358, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/client/broadcast.go:26 +0x85
github.com/cosmos/cosmos-sdk/client.TxServiceBroadcast({_, _}, {{0x0, 0x0, 0x0}, {0x2756b80, 0xc001240020}, {0xc00104e2f0, 0x9}, {0x273de98, ...}, ...}, ...)
	github.com/cosmos/cosmos-sdk@v0.45.16/client/broadcast.go:148 +0x138
github.com/cosmos/cosmos-sdk/x/auth/tx.txServer.BroadcastTx(...)
	github.com/cosmos/cosmos-sdk@v0.45.16/x/auth/tx/service.go:242
github.com/cosmos/cosmos-sdk/types/tx._Service_BroadcastTx_Handler.func1({0x2737778, 0xc0f4a30210}, {0x1d7d5c0?, 0xc107d0da80})
	github.com/cosmos/cosmos-sdk@v0.45.16/types/tx/service.pb.go:953 +0x78
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func1({0x2737778, 0xc0be002ff0}, {0x1d7d5c0, 0xc107d0da80}, 0xc107d0daa0?, 0xc0f54c7098)
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/grpcserver.go:66 +0x415
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x2737778?, 0xc0be002ff0?}, {0x1d7d5c0?, 0xc107d0da80?})
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:25 +0x3a
github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1({0x2737778?, 0xc0be002ff0?}, {0x1d7d5c0?, 0xc107d0da80?}, 0x7efe1141ef28?, 0xc107d0daa0?)
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/recovery/interceptors.go:33 +0xc4
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x2737778?, 0xc0be002ff0?}, {0x1d7d5c0?, 0xc107d0da80?})
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:25 +0x3a
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x2737778, 0xc0be002ff0}, {0x1d7d5c0, 0xc107d0da80}, 0xc108f92a01?, 0xc108f92aa0?)
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:34 +0xbe
github.com/cosmos/cosmos-sdk/types/tx._Service_BroadcastTx_Handler({0x1d2dc20?, 0xc001233ba0}, {0x2737778, 0xc0be002ff0}, 0xc0d717ccc0, 0xc0be003020)
	github.com/cosmos/cosmos-sdk@v0.45.16/types/tx/service.pb.go:955 +0x138
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func2({0x1d2dc20, 0xc001233ba0}, {0x2737778, 0xc0be002ff0}, 0x1ddad40?, 0xc04c2cc300?)
	github.com/cosmos/cosmos-sdk@v0.45.16/baseapp/grpcserver.go:80 +0xdc
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0192e5340, {0x2744cc0, 0xc0514b8900}, 0xc04c2cc300, 0xc01bd80840, 0xc01bc42e30, 0x0)
	google.golang.org/grpc@v1.53.0/server.go:1210 +0xcab
google.golang.org/grpc.(*Server).handleStream(0xc0192e5340, {0x2744cc0, 0xc0514b8900}, 0xc04c2cc300, 0x0)
	google.golang.org/grpc@v1.53.0/server.go:1533 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	google.golang.org/grpc@v1.53.0/server.go:871 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	google.golang.org/grpc@v1.53.0/server.go:869 +0x28a
: panic
@george-aj george-aj added the bug Something isn't working label Jul 6, 2023
@george-aj george-aj changed the title Bug: autzh MsgExec not working Bug: authz MsgExec not working Jul 6, 2023
@spoo-bar spoo-bar self-assigned this Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants