Skip to content

Tx simulation only supports hardcoded secp256k1 keys #11283

Closed
@fedekunze

Description

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:

PubKey: &secp256k1.PubKey{},

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions