Skip to content

Commit

Permalink
Problem: statedb balance is not handled consistently (#1167)
Browse files Browse the repository at this point in the history
Solution:
- integration latest ethermint

Co-authored-by: mmsqe <[email protected]>
  • Loading branch information
yihuang and mmsqe authored Sep 14, 2023
1 parent 2fbc0a9 commit 98c3d06
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ replace (
// TODO: remove it: https://github.com/cosmos/cosmos-sdk/issues/13134
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
github.com/ethereum/go-ethereum => github.com/evmos/go-ethereum v1.10.26-evmos-rc1
github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.6.1-0.20230913063514-bf62d0b33e56
github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.6.1-0.20230914072023-bdeaf36d31ea
// Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities.
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ github.com/crypto-org-chain/cometbft-db v0.0.0-20230412133340-ac70df4b45f6 h1:d4
github.com/crypto-org-chain/cometbft-db v0.0.0-20230412133340-ac70df4b45f6/go.mod h1:hF5aclS++7WrW8USOA3zPeKI0CuzwUD2TPYug25ANlQ=
github.com/crypto-org-chain/cosmos-sdk v0.46.0-beta2.0.20230905040840-b3af5590283b h1:d2GOFR3i3BjDlPsmJkp8Gsrt9LK2nq2IVEnE/rMv1Fo=
github.com/crypto-org-chain/cosmos-sdk v0.46.0-beta2.0.20230905040840-b3af5590283b/go.mod h1:EHwCeN9IXonsjKcjpS12MqeStdZvIdxt3VYXhus3G3c=
github.com/crypto-org-chain/ethermint v0.6.1-0.20230913063514-bf62d0b33e56 h1:nu9oo/IEG8O2PZD57vUB43g+sK/3pH1gov9F5gI26OM=
github.com/crypto-org-chain/ethermint v0.6.1-0.20230913063514-bf62d0b33e56/go.mod h1:xT6yzwilauRVhkvhjj7lDzazfgG4ZeUNSoQsuKImitY=
github.com/crypto-org-chain/ethermint v0.6.1-0.20230914072023-bdeaf36d31ea h1:dBmeOxXiJThF169i02lreJbtVG89QUaXIlc2e+x3wnU=
github.com/crypto-org-chain/ethermint v0.6.1-0.20230914072023-bdeaf36d31ea/go.mod h1:OtQsOW22hho1CzpMTzF3+dE9a42e0KhLYXqkNzX40ls=
github.com/crypto-org-chain/gravity-bridge/module/v2 v2.0.1-0.20230825054824-75403cd90c6e h1:rSTc35OBjjCBx47rHPWBCIHNGPbMnEj8f7fNcK2TjVI=
github.com/crypto-org-chain/gravity-bridge/module/v2 v2.0.1-0.20230825054824-75403cd90c6e/go.mod h1:HBaDqlFjlaXJwVQtA7jHejyaA7xwjXI2o6pU/ccP3tE=
github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
Expand Down
4 changes: 2 additions & 2 deletions gomod2nix.toml
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ schema = 3
hash = "sha256-GgcReGsIIuBE2TabDYqDO9sBGogdVr9RSh4arQzdPnE="
replaced = "github.com/evmos/go-ethereum"
[mod."github.com/evmos/ethermint"]
version = "v0.6.1-0.20230913063514-bf62d0b33e56"
hash = "sha256-1WE0BADrSWYmRs3DnuleD0+Jhc/ImQbgKHFSCYzNMT4="
version = "v0.6.1-0.20230914072023-bdeaf36d31ea"
hash = "sha256-Kx/4tTotsbKR17tVukNcd3XcRPwIrso+eTImXISuuPA="
replaced = "github.com/crypto-org-chain/ethermint"
[mod."github.com/felixge/httpsnoop"]
version = "v1.0.2"
Expand Down
4 changes: 3 additions & 1 deletion integration_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,9 @@ def test_message_call(cronos):

begin = time.time()
tx["gas"] = w3.eth.estimate_gas(tx)
assert time.time() - begin < 5 # should finish in reasonable time
elapsed = time.time() - begin
print("elapsed:", elapsed)
assert elapsed < 5 # should finish in reasonable time

receipt = send_transaction(w3, tx, KEYS["community"])
assert 23828976 == receipt.cumulativeGasUsed
Expand Down

0 comments on commit 98c3d06

Please sign in to comment.