ADD file via upload

This commit is contained in:
p30629751 2023-05-21 17:45:26 +08:00
parent 36675a1e77
commit 6f6dcd0600
1 changed files with 11 additions and 0 deletions

11
TransactionExecutor.sol Normal file
View File

@ -0,0 +1,11 @@
pragma solidity ^0.8.0;
contract TransactionExecutor {
function executeTransaction(address payable receiver, uint256 amount) external payable {
//
require(address(this).balance >= amount, "Insufficient contract balance");
//
receiver.transfer(amount);
}
}