Tx simulation only supports hardcoded secp256k1 keys #11283
Closed
Description
opened on Feb 26, 2022
Summary of Bug
Tx simulation and automatic gas adjustment (gas=auto
) don't work for chains that don't support the default secp256k1
keys. This is due to a hardcoded key type when simulating txs:
cosmos-sdk/client/tx/factory.go
Line 312 in 21e6f7c
Version
master
and v0.45.1
Steps to Reproduce
evmosd tx staking create-validator '--pubkey={"@type":"/cosmos.crypto.ed25519.PubKey","key":"Ul+8+77luvvDZdabsVtCGA4A2yFXlo+0MFtf7gOQkMA="}' --gas=auto
Error: rpc error: code = InvalidArgument desc = unrecognized/unsupported public key type: *secp256k1.PubKey: invalid pubkey: invalid request
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Activity