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

bump SDK to v0.39.1 #386

Merged
merged 60 commits into from
Aug 23, 2020
Merged

bump SDK to v0.39.1 #386

merged 60 commits into from
Aug 23, 2020

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Jul 10, 2020

Description

IMPORTANT: only tested ACK reviews please (i.e review code + deploy contracts/test functionality)

TODO:

  • fix make test-import
  • fix Metamask transfers

For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented Jul 10, 2020

Codecov Report

Merging #386 into development will decrease coverage by 0.90%.
The diff coverage is 66.66%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #386      +/-   ##
===============================================
- Coverage        70.83%   69.92%   -0.91%     
===============================================
  Files               38       38              
  Lines             2465     2487      +22     
===============================================
- Hits              1746     1739       -7     
- Misses             589      617      +28     
- Partials           130      131       +1     
Impacted Files Coverage Δ
crypto/secp256k1.go 82.85% <ø> (-1.36%) ⬇️
types/codec.go 0.00% <0.00%> (-100.00%) ⬇️
x/evm/abci.go 0.00% <0.00%> (ø)
x/evm/client/cli/tx.go 0.00% <0.00%> (ø)
x/evm/types/querier.go 0.00% <0.00%> (ø)
x/evm/types/utils.go 45.90% <0.00%> (ø)
x/evm/keeper/keeper.go 70.00% <18.18%> (-15.37%) ⬇️
types/account.go 39.34% <29.62%> (-10.66%) ⬇️
app/export.go 7.31% <33.33%> (ø)
x/evm/module.go 59.09% <44.44%> (ø)
... and 15 more

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 6fa5faf...f759f71. Read the comment docs.

@fedekunze fedekunze marked this pull request as ready for review July 15, 2020 11:46
@fedekunze fedekunze requested a review from noot as a code owner July 15, 2020 11:46
@fedekunze fedekunze changed the title DO-NOT-MERGE: test compatibility against SDK v0.39.0 (launchpad) release test compatibility against SDK v0.39.0 (launchpad) release Jul 15, 2020
@fedekunze fedekunze changed the title test compatibility against SDK v0.39.0 (launchpad) release bump SDK to v0.39.0 Jul 15, 2020
@fedekunze
Copy link
Contributor Author

I'm getting this error on the RPC tests. Seems that the ethermint pubkey is not registered on the amino codec

=== RUN   TestEth_GetTransactionReceipt
    TestEth_GetTransactionReceipt: rpc_test.go:107: 
        	Error Trace:	rpc_test.go:107
        	            				rpc_test.go:431
        	            				rpc_test.go:440
        	Error:      	Expected nil, but got: &tests.RPCError{Code:-32000, Message:"panic: recovered: Cannot encode unregistered concrete type crypto.PubKeySecp256k1.\nstack:\ngoroutine 715 [running]:\nruntime/debug.Stack(0xc0010eb8e0, 0x4ed7420, 0xc00308c930)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/runtime/debug/stack.go:24 +0x9d\ngit.luolix.top/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1(0xc0010f88b0, 0xc0010f8e18, 0xc0010fa858, 0xc0010fa850, 0xc0010fa840)\n\t/Users/federico/cosmos-sdk/baseapp/baseapp.go:562 +0x8d\npanic(0x4ed7420, 0xc00308c930)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/runtime/panic.go:967 +0x166\ngit.luolix.top/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle.func1(0x2e5c0e48, 0xc003057320, 0xc0010f5ed0, 0xc0010f6160)\n\t/Users/federico/cosmos-sdk/x/auth/ante/setup.go:59 +0x25b\npanic(0x4ed7420, 0xc00308c930)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/runtime/panic.go:967 +0x166\ngit.luolix.top/tendermint/go-amino.(*Codec).MustMarshalBinaryLengthPrefixed(...)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/go-amino@v0.15.1/amino.go:180\ngit.luolix.top/cosmos/cosmos-sdk/x/auth/ante.ConsumeTxSizeGasDecorator.AnteHandle(0x5484b20, 0xc000269930, 0x5239a98, 0xc0002001c0, 0xc0002001c0, 0x5484b20, 0xc0002699a0, 0x5484b60, 0xc0002699e0, 0xc000042e60, ...)\n\t/Users/federico/cosmos-sdk/x/auth/ante/basic.go:128 +0x769\ngit.luolix.top/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/types/handler.go:40 +0x124\ngit.luolix.top/cosmos/cosmos-sdk/x/auth/ante.ValidateMemoDecorator.AnteHandle(0x5484b20, 0xc000269930, 0x5239a98, 0xc0002001c0, 0xc0002001c0, 0x5484b20, 0xc0002699a0, 0x5484b60, 0xc0002699e0, 0xc000042e60, ...)\n\t/Users/federico/cosmos-sdk/x/auth/ante/basic.go:75 +0x373\ngit.luolix.top/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/types/handler.go:40 +0x124\ngit.luolix.top/cosmos/cosmos-sdk/x/auth/ante.ValidateBasicDecorator.AnteHandle(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/x/auth/ante/basic.go:37 +0x14b\ngit.luolix.top/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/types/handler.go:40 +0x124\ngit.luolix.top/cosmos/cosmos-sdk/x/auth/ante.MempoolFeeDecorator.AnteHandle(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/x/auth/ante/fee.go:68 +0x186\ngit.luolix.top/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/types/handler.go:40 +0x124\ngit.luolix.top/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/x/auth/ante/setup.go:64 +0x493\ngit.luolix.top/cosmos/cosmos-sdk/types.ChainAnteDecorators.func1(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/types/handler.go:40 +0x124\ngit.luolix.top/cosmos/ethermint/app/ante.NewAnteHandler.func1(0x5497660, 0xc0001b6008, 0x54ad780, 0xc003028bc0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/ethermint/app/ante/ante.go:63 +0x685\ngit.luolix.top/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0xc000173680, 0x2, 0xc000013a70, 0x45, 0x90, 0x5487620, 0xc003057320, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/baseapp/baseapp.go:608 +0x63a\ngit.luolix.top/cosmos/cosmos-sdk/baseapp.(*BaseApp).Simulate(...)\n\t/Users/federico/cosmos-sdk/baseapp/helpers.go:18\ngit.luolix.top/cosmos/cosmos-sdk/baseapp.handleQueryApp(0xc000173680, 0xc00309b260, 0x2, 0x2, 0xc000013a70, 0x45, 0x90, 0xc003099450, 0xc, 0x0, ...)\n\t/Users/federico/cosmos-sdk/baseapp/abci.go:329 +0x370\ngit.luolix.top/cosmos/cosmos-sdk/baseapp.(*BaseApp).Query(0xc000173680, 0xc000013a70, 0x45, 0x90, 0xc003099450, 0xc, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/cosmos-sdk/baseapp/abci.go:303 +0x246\ngit.luolix.top/tendermint/tendermint/abci/client.(*localClient).QuerySync(0xc0011f8a80, 0xc000013a70, 0x45, 0x90, 0xc003099450, 0xc, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/abci/client/local_client.go:207 +0x105\ngit.luolix.top/tendermint/tendermint/proxy.(*appConnQuery).QuerySync(0xc0010aa960, 0xc000013a70, 0x45, 0x90, 0xc003099450, 0xc, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/proxy/app_conn.go:143 +0x6a\ngit.luolix.top/tendermint/tendermint/rpc/core.ABCIQuery(0xc00309b100, 0xc003099450, 0xc, 0xc000013a70, 0x45, 0x90, 0x0, 0x0, 0x0, 0x0, ...)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/rpc/core/abci.go:20 +0x114\nreflect.Value.call(0x4f1cc40, 0x523b1a8, 0x13, 0x50a2e8a, 0x4, 0xc003064a80, 0x5, 0x5, 0x5, 0x18, ...)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/reflect/value.go:460 +0x8ab\nreflect.Value.Call(0x4f1cc40, 0x523b1a8, 0x13, 0xc003064a80, 0x5, 0x5, 0x4, 0x4, 0x0)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/reflect/value.go:321 +0xb4\ngit.luolix.top/tendermint/tendermint/rpc/jsonrpc/server.makeJSONRPCHandler.func1(0x5491420, 0xc00309b0c0, 0xc00309ed00)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/rpc/jsonrpc/server/http_json_handler.go:103 +0x8d8\ngit.luolix.top/tendermint/tendermint/rpc/jsonrpc/server.handleInvalidJSONRPCPaths.func1(0x5491420, 0xc00309b0c0, 0xc00309ed00)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/rpc/jsonrpc/server/http_json_handler.go:127 +0x9c\nnet/http.HandlerFunc.ServeHTTP(0xc000255ee0, 0x5491420, 0xc00309b0c0, 0xc00309ed00)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/net/http/server.go:2012 +0x44\nnet/http.(*ServeMux).ServeHTTP(0xc0001d9e80, 0x5491420, 0xc00309b0c0, 0xc00309ed00)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/net/http/server.go:2387 +0x1a5\ngit.luolix.top/tendermint/tendermint/rpc/jsonrpc/server.maxBytesHandler.ServeHTTP(0x54730c0, 0xc0001d9e80, 0xf4240, 0x5491420, 0xc00309b0c0, 0xc00309ed00)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/rpc/jsonrpc/server/http_server.go:240 +0xcf\ngit.luolix.top/tendermint/tendermint/rpc/jsonrpc/server.RecoverAndLogHandler.func1(0x5491c20, 0xc0001bab60, 0xc00309ed00)\n\t/Users/federico/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/rpc/jsonrpc/server/http_server.go:213 +0x38e\nnet/http.HandlerFunc.ServeHTTP(0xc0002fa000, 0x5491c20, 0xc0001bab60, 0xc00309ed00)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/net/http/server.go:2012 +0x44\nnet/http.serverHandler.ServeHTTP(0xc0002fc000, 0x5491c20, 0xc0001bab60, 0xc00309ed00)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/net/http/server.go:2807 +0xa3\nnet/http.(*conn).serve(0xc002dec500, 0x5497620, 0xc003180280)\n\t/usr/local/Cellar/go/1.14.1/libexec/src/net/http/server.go:1895 +0x86c\ncreated by net/http.(*Server).Serve\n\t/usr/local/Cellar/go/1.14.1/libexec/src/net/http/server.go:2933 +0x35c\n: failed to simulate tx", Data:interface {}(nil)}
        	Test:       	TestEth_GetTransactionReceipt
--- FAIL: TestEth_GetTransactionReceipt (2.02s)

@fedekunze
Copy link
Contributor Author

All the tests have been fixed now 🎉

err := suite.app.BankKeeper.SetBalances(suite.ctx, acc1.GetAddress(), newTestCoins())
suite.Require().NoError(err)
// err := suite.app.BankKeeper.SetBalances(suite.ctx, acc1.GetAddress(), newTestCoins())
// suite.Require().NoError(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why all these commented lines are still in here? These should get removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left all the commented lines for ease of upgrading later on. I can remove it and reference the commit on an issue if that's better

Copy link
Contributor

Choose a reason for hiding this comment

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

No thats fine. I was just curious

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you are right and I should clean up the comments, it doesn't look clean

@fedekunze fedekunze merged commit 261f86f into development Aug 23, 2020
@fedekunze fedekunze deleted the sdk-0.39 branch August 23, 2020 21:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants