Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Conversation

@austinabell
Copy link

@austinabell austinabell commented Nov 13, 2019

Notes/problems:

  • EVM state transition increments nonce in the message handler and uses the current nonce to generate the address that a contract is deployed to
    • Naive solution would be to remove the nonce check within the state transition function, add the nonce increase in each ante handler, and reduce the nonce by 1 at the end of the state transition to offset the increase done within the EVM
  • Unclear which (if at all) rest endpoints will be available for the module. Most queries are irrelevant outside of the web3 rpc API, and there are potential options for allowing the existing code to be compatible with cosmos standard transactions, but unclear the direction.
  • Verify and write tests for the inputs of the query

Commands include:

# Basic send transaction to an account
emintcli tx evm send [address] [amount] <data> --from [key or account]
# Create evm transaction (will return address that contract will be created at)
emintcli tx evm create [bytecode] <amount> --from [key or account]

# Query storage
emintcli query evm storage [account] [key]
# Query code
emintcli query evm code [account]
# Address can be cosmos or ethereum format

@austinabell austinabell marked this pull request as ready for review November 15, 2019 12:23
@austinabell austinabell merged commit 6eef37b into development Nov 15, 2019
@austinabell austinabell deleted the austin/moduleclient branch November 15, 2019 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants