Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: pengbanban <[email protected]>
  • Loading branch information
pengbanban committed Aug 4, 2024
1 parent b4bec82 commit e6f6ee3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contracts/src/ModuleCRC20Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/ModuleCRC21.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/contracts/contracts/TestCRC20Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/contracts/contracts/TestERC21Source.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,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()):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_gravity_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion x/cronos/events/decoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit e6f6ee3

Please sign in to comment.