Skip to content

Commit

Permalink
Adding back in the _to.call statement.
Browse files Browse the repository at this point in the history
Signed-off-by: ebadiere <[email protected]>
  • Loading branch information
ebadiere committed Oct 16, 2023
1 parent 629e20f commit a11ec0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/hip-583/ContractTransferTx.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ contract ContractTransferTx {
function transferTo(address payable _to, uint256 _amount) public {
require(address(this).balance > _amount, "Insufficient contract balance");

_to.call{value : _amount}("");

emit Transferred(msg.sender, _to, _amount);
}

Expand Down

0 comments on commit a11ec0b

Please sign in to comment.