diff --git a/blockchain_integration/pi_network/contracts/PI-bank/contracts/PI-Wallet.sol b/blockchain_integration/pi_network/contracts/PI-bank/contracts/PI-Wallet.sol index f62cd5101..c964946bc 100644 --- a/blockchain_integration/pi_network/contracts/PI-bank/contracts/PI-Wallet.sol +++ b/blockchain_integration/pi_network/contracts/PI-bank/contracts/PI-Wallet.sol @@ -35,7 +35,7 @@ contract PIWallet { emit Transfer(msg.sender, _to, _amount); } - function withdrawTo(address _to, uint256 _amount) public onlyOwner { + function withdrawTo(address _to, uint256 _amount) public onlyOwner { require(_to != address(0), "Invalid address"); require(_amount > 0, "Invalid amount");