Closed onikonychev closed 3 months ago
The changes in the nibiru
project involve a comprehensive code cleanup, addressing unused code, typographical errors, stylistic issues, and warnings. Key modifications include updating function signatures, refining error handling practices, and correcting documentation comments. Additionally, the changes emphasize consistency in method receivers and error messages, improving code readability and maintainability.
File(s) | Change Summary |
---|---|
CHANGELOG.md |
Summarized code cleanup, addressing unused code, typos, styles, and warnings. |
app/ante.go |
Adjusted function signatures and refined transaction handling logic. |
app/evmante_sigverify_test.go |
Removed initialization of the RandomAddress variable. |
app/server/json_rpc.go |
Updated error comparison logic to use errors.Is . |
eth/codec.go |
Removed math/big import and ParseEIP155ChainIDNumber function. |
eth/rpc/backend/client_test.go |
Removed cosmos-sdk imports and refactored related test functions. |
eth/rpc/rpcapi/apis.go |
Removed RegisterAPINamespace function. |
x/common/testutil/testnetwork/network.go |
Corrected comment semantics. |
x/devgas/v1/ante/expected_keepers.go |
Corrected duplicated word in a comment. |
x/devgas/v1/keeper/keeper.go |
Fixed a typo in a comment. |
x/devgas/v1/types/msg.go |
Corrected typos in comments for Type methods. |
x/evm/access_list.go |
Updated comments and changed receiver types to pointers for various methods. |
x/evm/chain_config.go |
Corrected a typo in the Validate function comment. |
x/evm/codec.go |
Removed ModuleCdc declaration and adjusted comments. |
x/evm/errors.go |
Updated error messages and removed error code declarations. |
x/evm/evm.go |
Changed receiver types to pointers for ID and Validate functions in FunToken . |
x/evm/evmtest/test_deps.go |
Updated receiver type in GoCtx method to a pointer receiver. |
x/evm/evmtest/tx.go |
Removed NewEthTx , NewEthTxUnsigned , and GasLimitCreateContract functions. |
x/evm/genesis.go |
Changed receiver types to pointers in Validate methods for GenesisAccount and GenesisState . |
x/evm/keeper/erc20.go |
Updated receiver types to pointers for several functions and renamed erc20Calls to Erc20Calls . |
x/evm/keeper/erc20_from_coin.go |
Standardized error messages to start with lowercase letters. |
x/evm/keeper/erc20_test.go |
Updated error message case sensitivity in test functions. |
x/evm/keeper/evm_state.go |
Adjusted receiver types in methods of Keeper and other functions. |
x/evm/keeper/grpc_query.go |
Updated receiver types to pointers and fixed interface implementation for Keeper . |
In the code where bytes do dance,
A rabbit adds a gleeful glance,
With tidied lines and errors few,
The nibiru project feels brand new.
Methods now with pointer grace,
Typo gremlins can't show face.
Hip-hip-hooray for every change,
Our code’s now in a brighter range!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 50.00000%
with 9 lines
in your changes missing coverage. Please review.
Project coverage is 65.84%. Comparing base (
187ad82
) to head (31ba3d2
).
Summary by CodeRabbit
Refactor
Style
Chores