摘要:
父合约 contract fruit{ string public name = 'eat'; } 继承 import "/4_.sol"; contract Apple is fruit { function getType() external view returns(string memor 阅读全文
摘要:
A合约调用B合约 合约B contract B { uint public x; uint public value; function setX(uint _x) public returns (uint){ x = _x; return x; } function setXandSendEthe 阅读全文
摘要:
delegateCall 用于重定向父合约; A 合约越来调用B1, 将地址改为 B2 就可以调用 B2 合约B1 contract B { uint public num; uint public value; function setVars(uint _num) public payable{ 阅读全文