From 658a440528b09509a8e3f8d3e5619b8dcb2925da Mon Sep 17 00:00:00 2001 From: pengbanban Date: Mon, 19 Aug 2024 10:35:34 +0900 Subject: [PATCH] chore: fix some comments (#1537) Signed-off-by: pengbanban --- contracts/src/ModuleCRC20Proxy.sol | 2 +- contracts/src/ModuleCRC21.sol | 2 +- .../contracts/contracts/CronosGravityCancellation.sol | 2 +- integration_tests/contracts/contracts/TestCRC20Proxy.sol | 2 +- integration_tests/contracts/contracts/TestERC21Source.sol | 2 +- integration_tests/test_basic.py | 2 +- integration_tests/test_gravity_2.py | 2 +- x/cronos/events/decoders.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/src/ModuleCRC20Proxy.sol b/contracts/src/ModuleCRC20Proxy.sol index 2351524bc9..4ab9b892db 100644 --- a/contracts/src/ModuleCRC20Proxy.sol +++ b/contracts/src/ModuleCRC20Proxy.sol @@ -84,7 +84,7 @@ contract ModuleCRC20Proxy is DSMath { emit __CronosSendToIbc(msg.sender, channel_id, recipient, amount, extraData); } - // cancel a send to chain transaction considering if it hasnt been batched yet. + // cancel a send to chain transaction considering if it hasn't been batched yet. function cancel_send_to_evm_chain(uint256 id) external { emit __CronosCancelSendToEvmChain(msg.sender, id); } diff --git a/contracts/src/ModuleCRC21.sol b/contracts/src/ModuleCRC21.sol index 9ec7ba23cc..8223210984 100644 --- a/contracts/src/ModuleCRC21.sol +++ b/contracts/src/ModuleCRC21.sol @@ -76,7 +76,7 @@ contract ModuleCRC21 is DSToken { emit __CronosSendToEvmChain(msg.sender, recipient, chain_id, amount, bridge_fee, extraData); } - // cancel a send to chain transaction considering if it hasnt been batched yet. + // cancel a send to chain transaction considering if it hasn't been batched yet. function cancel_send_to_evm_chain(uint256 id) external { emit __CronosCancelSendToEvmChain(msg.sender, id); } diff --git a/integration_tests/contracts/contracts/CronosGravityCancellation.sol b/integration_tests/contracts/contracts/CronosGravityCancellation.sol index 2bd4d66ce5..bcf3e09ba5 100644 --- a/integration_tests/contracts/contracts/CronosGravityCancellation.sol +++ b/integration_tests/contracts/contracts/CronosGravityCancellation.sol @@ -4,7 +4,7 @@ contract CronosGravityCancellation { event __CronosCancelSendToEvmChain(address indexed sender, uint256 id); - // Cancel a send to chain transaction considering if it hasnt been batched yet. + // Cancel a send to chain transaction considering if it hasn't been batched yet. function cancelTransaction(uint256 id) public { emit __CronosCancelSendToEvmChain(msg.sender, id); } diff --git a/integration_tests/contracts/contracts/TestCRC20Proxy.sol b/integration_tests/contracts/contracts/TestCRC20Proxy.sol index 2f6759cdd3..85e54d3681 100644 --- a/integration_tests/contracts/contracts/TestCRC20Proxy.sol +++ b/integration_tests/contracts/contracts/TestCRC20Proxy.sol @@ -71,7 +71,7 @@ contract TestCRC20Proxy { emit __CronosSendToEvmChain(msg.sender, recipient, chain_id, amount, bridge_fee, extraData); } - // cancel a send to chain transaction considering if it hasnt been batched yet. + // cancel a send to chain transaction considering if it hasn't been batched yet. function cancel_send_to_evm_chain(uint256 id) external { emit __CronosCancelSendToEvmChain(msg.sender, id); } diff --git a/integration_tests/contracts/contracts/TestERC21Source.sol b/integration_tests/contracts/contracts/TestERC21Source.sol index 6164473bae..e455968cb1 100644 --- a/integration_tests/contracts/contracts/TestERC21Source.sol +++ b/integration_tests/contracts/contracts/TestERC21Source.sol @@ -86,7 +86,7 @@ contract TestERC21Source is ERC20 { emit __CronosSendToEvmChain(msg.sender, recipient, chain_id, amount, bridge_fee, extraData); } - // cancel a send to chain transaction considering if it hasnt been batched yet. + // cancel a send to chain transaction considering if it hasn't been batched yet. function cancel_send_to_evm_chain(uint256 id) external { emit __CronosCancelSendToEvmChain(msg.sender, id); } diff --git a/integration_tests/test_basic.py b/integration_tests/test_basic.py index d10cf89b93..5050ccbc61 100644 --- a/integration_tests/test_basic.py +++ b/integration_tests/test_basic.py @@ -309,7 +309,7 @@ def test_local_statesync(cronos, tmp_path_factory): cronos.supervisorctl("stop", "cronos_777-1-node0") tarball = cli0.data_dir / "snapshot.tar.gz" height = int(sync_info["latest_block_height"]) - # round down to multplies of memiavl.snapshot-interval + # round down to multiples of memiavl.snapshot-interval height -= height % 5 if height not in set(item.height for item in cli0.list_snapshot()): diff --git a/integration_tests/test_gravity_2.py b/integration_tests/test_gravity_2.py index bd3f4db2fa..6389a268be 100644 --- a/integration_tests/test_gravity_2.py +++ b/integration_tests/test_gravity_2.py @@ -353,7 +353,7 @@ def check_gravity_native_tokens(): # Wait enough for orchestrator to relay the event wait_for_new_blocks(cli, 30) - # check that the bridge has not been desactivated + # check that the bridge has not been deactivated activate = cli.query_gravity_params()["params"]["bridge_active"] assert activate is True diff --git a/x/cronos/events/decoders.go b/x/cronos/events/decoders.go index 1f95ed6a8b..477e87902a 100644 --- a/x/cronos/events/decoders.go +++ b/x/cronos/events/decoders.go @@ -34,7 +34,7 @@ func (d ValueDecoders) GetDecoder(name string) (ValueDecoder, bool) { const ( // intBase is the base `int`s are parsed in, 10. intBase = 10 - // int64Bits is the number of bits stored in a variabe of `int64` type. + // int64Bits is the number of bits stored in a variable of `int64` type. int64Bits = 64 )