daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest May 16th, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pragma solidity ^0.4.23;
  2.  
  3. import "./two.sol";
  4.  
  5. contract One{
  6.  
  7.     string name;
  8.  
  9.     constructor() public{
  10.  
  11.     }
  12.  
  13.     Two two;
  14.  
  15.     function getNameFromOtherContract() public returns(string) {
  16.         name = two.getName();
  17.         return name;
  18.     }
  19. }
  20.    
  21. pragma solidity ^0.4.23;
  22.  
  23. contract Two{
  24.  
  25.     constructor() public{
  26.     }
  27.  
  28.     function getName() external pure returns (string name) {
  29.         name = "Amel";
  30.     }
  31. }
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