ARC-10 Transfer in Smart Contracts
Introduction
pragma solidity ^0.5.0;
contract transferTokenContract {
constructor() payable public{}
function() payable external {}
function transferTokenTest(address payable toAddress, uint256 tokenValue, arcToken id) payable public {
toAddress.transferToken(tokenValue, id);
}
function msgTokenValueAndTokenIdTest() public payable returns(arcToken, uint256){
acToken id = msg.tokenid;
uint256 value = msg.tokenvalue;
return (id, value);
}
function getTokenBalanceTest(address accountAddress) payable public returns (uint256){
arcToken id = 1000001;
return accountAddress.tokenBalance(id);
}
}Last updated