Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.4.23;
- import "./two.sol";
- contract One{
- string name;
- constructor() public{
- }
- Two two;
- function getNameFromOtherContract() public returns(string) {
- name = two.getName();
- return name;
- }
- }
- pragma solidity ^0.4.23;
- contract Two{
- constructor() public{
- }
- function getName() external pure returns (string name) {
- name = "Amel";
- }
- }
Add Comment
Please, Sign In to add comment