SHARE
TWEET

Untitled

a guest Jan 21st, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pragma solidity ^0.5.0;
  2.  
  3. import "./openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
  4. import "./openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol";
  5.  
  6. contract MyToken is ERC20, ERC20Mintable {}
  7.    
  8. pragma solidity ^0.5.0;
  9.  
  10. import "./MyToken.sol";
  11.  
  12. contract TokenInteraction {
  13.  
  14.     address public tokenAddress;
  15.  
  16.     constructor(address _tokenAdd) public {
  17.         tokenAddress = _tokenAdd;
  18.     }
  19.  
  20.     function transferToken(address to) public {
  21.         MyToken myToken = MyToken(tokenAddress);
  22.         myToken.transfer(to, 1);
  23.     }
  24.  
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top