Skip to content

Commit

Permalink
Update WCKTON.sol
Browse files Browse the repository at this point in the history
fmt
  • Loading branch information
hujw77 authored Mar 2, 2021
1 parent b703962 commit d241af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrapper/WCKTON.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract WCKTON is ERC223 {
require(msg.sender == KTON_PRECOMPILE, "WKTON: PERMISSION");
totalSupply += value;
balanceOf[from] += value;
emit Transfer(address(0), from, value);
emit Transfer(address(0), from, value);
emit Deposit(from, value);
}
function withdraw(bytes32 to, uint wad) public {
Expand All @@ -47,7 +47,7 @@ contract WCKTON is ERC223 {
balanceOf[msg.sender] -= wad;
bool success = KTON_PRECOMPILE.call(bytes4(keccak256("withdraw(bytes32,uint256)")), to, wad);
require(success, "WKTON: WITHDRAW_FAILED");
emit Transfer(msg.sender, address(0), wad);
emit Transfer(msg.sender, address(0), wad);
emit Withdrawal(to, wad);
}

Expand Down

0 comments on commit d241af7

Please sign in to comment.