github.com/klaytn/klaytn@v1.12.1/contracts/internal_tx_contract/internal_tx_contract.sol (about) 1 pragma solidity >=0.8.0; 2 3 contract Sender { 4 constructor () payable {} 5 6 function deposit(uint256 amount) payable public { 7 require(msg.value == amount); 8 } 9 10 function sendKlay(uint32 times, address payable receiver) public { 11 for (uint32 i = 0; i < times; i++) { 12 receiver.transfer(1); 13 } 14 } 15 16 function getBalance() public view returns (uint256) { 17 return address(this).balance; 18 } 19 }