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

update chain-id format #541

Closed
wants to merge 11 commits into from

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Sep 24, 2020

closes #540

@fedekunze fedekunze added the x/evm EVM module issues label Sep 24, 2020
@fedekunze fedekunze changed the base branch from development to fedekunze/msg-ethermint September 24, 2020 13:59
@fedekunze fedekunze changed the title fedekunze/540 chain id update chain-id format Sep 24, 2020
@codecov
Copy link

codecov bot commented Sep 24, 2020

Codecov Report

Merging #541 into fedekunze/msg-ethermint will increase coverage by 0.07%.
The diff coverage is 80.00%.

Impacted file tree graph

@@                     Coverage Diff                     @@
##           fedekunze/msg-ethermint     #541      +/-   ##
===========================================================
+ Coverage                    70.60%   70.67%   +0.07%     
===========================================================
  Files                           43       43              
  Lines                         2228     2237       +9     
===========================================================
+ Hits                          1573     1581       +8     
  Misses                         516      516              
- Partials                       139      140       +1     
Impacted Files Coverage Δ
types/chain_id.go 61.53% <63.63%> (+61.53%) ⬆️
app/ante/eth.go 58.62% <100.00%> (ø)
x/evm/handler.go 90.16% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a1da26...7f587e7. Read the comment docs.

@fedekunze fedekunze marked this pull request as ready for review September 24, 2020 14:48
@fedekunze fedekunze requested a review from noot as a code owner September 24, 2020 14:48
Comment on lines +31 to +33
chainIDEpoch, err := ethermint.ParseChainID(ctx.ChainID())
if err != nil {
return nil, err
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noot this is where we parse the chain ID epoch number for ethereum compatibility

Copy link
Contributor

@noot noot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting some errors when sending a tx:

$ geth attach http://172.17.0.2:8545

> eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[0], value: 0x1})
Error: invalid chain ID: 17: failed to simulate tx
	at web3.js:6347:37(47)
	at web3.js:5081:62(37)
	at <eval>:1:20(16)

@noot
Copy link
Contributor

noot commented Sep 24, 2020

@fedekunze figured out the issue, could you change this so we cannot use an invalid chain ID (ie --chain-id=17) with ethermintd testnet or ethermintcli rest-server?

@fedekunze
Copy link
Contributor Author

replaced by #542

@fedekunze fedekunze closed this Sep 24, 2020
@fedekunze fedekunze deleted the fedekunze/540-chain-id branch September 24, 2020 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants