:
import './위치/파일명';
//B_smartContract 받아오기 import './b.sol'; contract A { B_SmartContract b = new B_SmartContract(); function add(uint _a, uint _b) public view returns(uint) { return b.add(_a, _b); }
contract B_SmartContract { function add(uint _a, uint _b) public pure returns(uint) { return (_a+_a+_b); } }
//외부 라이브러리 사용하는 법(git) import "@openzeppelin/contracts/utils/Strings.sol"; contract C{ function UtoS(uint _n) public pure returns(string memory){ return Strings.toString(_n); } }