Guest User

Untitled

a guest
May 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment