solidity

function pay(address wallet) external payable {

  wallet.transfer(msg.value);


tronbox console

//sending 1TRX
tronbox(development)>Contract.deployed().then(function(instance){return instance.pay(wallet1, {from:wallet2, callValue:1e6})});



+ Recent posts