摘要:
Functions and state variables have to declare whether they are accessible by other contracts. Functions can be declared as public - any contract and a 阅读全文
摘要:
Parent contracts can be called directly, or by using the keyword super. By using the keyword super, all of the immediate parent contracts will be call 阅读全文
摘要:
原文网址:https://solidity-by-example.org/new-contract/ Contracts can be created by other contracts using the new keyword. Since 0.8.0, new keyword support 阅读全文
摘要:
try / catch can only catch errors from external function calls and contract creation. // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; // Exte 阅读全文
摘要:
You can import local and external files in Solidity. Local Here is our folder structure. ├── Import.sol └── Foo.sol Foo.sol // SPDX-License-Identifier 阅读全文
摘要:
Contract can call other contracts in 2 ways. The easiest way to is to just call it, like A.foo(x, y, z). Another way to call other contracts is to use 阅读全文