Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Jun 9, 2022
1 parent 8559d28 commit 3ccc45e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

### State Machine Breaking
- [cronos#429](https://github.com/crypto-org-chain/cronos/pull/429) Update ethermint to main, ibc-go to v3.0.0, cosmos sdk to v0.45.4 and gravity to latest, remove v0.7.0 related upgradeHandler.
- [cronos#532](https://github.com/crypto-org-chain/cronos/pull/532) Add SendtoChain and CancelSendToChain support from evm call.

### Improvements
- [cronos#418](https://github.com/crypto-org-chain/cronos/pull/418) Support logs in evm-hooks and return id for SendToEthereum events
- [cronos#489](https://github.com/crypto-org-chain/cronos/pull/489) Enable jemalloc memory allocator, and update rocksdb src to `v6.29.5`.
- [cronos#511](https://github.com/crypto-org-chain/cronos/pull/511) Replace ibc-hook with ibc middleware, use ibc-go upstream version.
- [cronos#532](https://github.com/crypto-org-chain/cronos/pull/532) Add SendtoChain and CancelSendToChain support from evm call.

*May 3, 2022*

Expand Down
1 change: 0 additions & 1 deletion contracts/src/ModuleCRC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ contract ModuleCRC20 is DSToken {
unsafe_burn(addr, amount);
}

// DEPRECATED: send to ethereum through gravity bridge
function send_to_ethereum(address recipient, uint amount, uint bridge_fee) external {
unsafe_burn(msg.sender, add(amount, bridge_fee));
emit __CronosSendToEthereum(recipient, amount, bridge_fee);
Expand Down
8 changes: 3 additions & 5 deletions integration_tests/test_gravity.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,9 @@ def check_fund():
tx_id = get_id_from_receipt(txreceipt)
assert txreceipt.status == 1, "should success"

def check_deduction():
v = crc21_contract.caller.balanceOf(ADDRS["community"])
return v == 0

wait_for_fn("check deduction", check_deduction)
# Check_deduction
balance_after_send = crc21_contract.caller.balanceOf(ADDRS["community"])
assert balance_after_send == 0

# Cancel the send_to_chain
canceltx = cancel_contract.functions.cancelTransaction(
Expand Down
2 changes: 1 addition & 1 deletion x/cronos/keeper/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (k Keeper) CallModuleCRC20(ctx sdk.Context, contract common.Address, method
return res.Ret, nil
}

// DeployModuleCRC21 deploy an embed erc20 contract
// DeployModuleCRC21 deploy an embed crc21 contract
func (k Keeper) DeployModuleCRC21(ctx sdk.Context, denom string) (common.Address, error) {
ctor, err := types.ModuleCRC21Contract.ABI.Pack("", denom, uint8(0))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/cronos/types/contracts/ModuleCRC20.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion x/cronos/types/contracts/ModuleCRC21.json

Large diffs are not rendered by default.

0 comments on commit 3ccc45e

Please sign in to comment.