public Task <TransactionPoller> Approve(string privateKey, string spender, decimal amount, BigInteger gasLimit, BigInteger gasPrice) { Messages.Approve approve = new Messages.Approve { Spender = spender, Value = SolidityUtils.ConvertToUInt(amount, Decimals.Value) }; return(ContractUtils.SendContractMessage(approve, privateKey, ContractAddress, gasPrice, gasLimit)); }
public Task <TransactionPoller> Approve(string privateKey, string addressTo, BigInteger tokenId, BigInteger gasLimit, BigInteger gasPrice) { Messages.Approve approve = new Messages.Approve { To = addressTo, TokenId = tokenId }; return(ContractUtils.SendContractMessage(approve, privateKey, ContractAddress, gasPrice, gasLimit)); }