Skip to content

Commit 69a652f

Browse files
authored
Fix SendToIBC event in moduleCRC20 contract (#144)
* fix SendToIBC event in moduleCRC20 contract * add changelog
1 parent 761c5de commit 69a652f

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## UNRELEASED
44

5+
### Bug Fixes
6+
- [cronos#144](https://github.com/crypto-org-chain/cronos/pull/144) fix events in autodeploy crc20 module contract
7+
8+
59
*October 4, 2021*
610
## v0.5.5
711

contracts/src/ModuleCRC20.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contract ModuleCRC20 is DSToken {
88
string denom;
99

1010
event __CronosSendToEthereum(address recipient, uint256 amount, uint256 bridge_fee);
11-
event __CronosSendToIbc(string recipient, uint256 amount);
11+
event __CronosSendToIbc(address sender, string recipient, uint256 amount);
1212

1313
constructor(string memory denom_, uint8 decimals_) DSToken(denom) public {
1414
decimals = decimals_;
@@ -47,6 +47,6 @@ contract ModuleCRC20 is DSToken {
4747
// send an "amount" of the contract token to recipient through IBC
4848
function send_to_ibc(string memory recipient, uint amount) public {
4949
unsafe_burn(msg.sender, amount);
50-
emit __CronosSendToIbc(recipient, amount);
50+
emit __CronosSendToIbc(msg.sender, recipient, amount);
5151
}
5252
}

0 commit comments

Comments
 (0)