Page 1 of 1

Solidity files:

Posted: Mon Mar 27, 2023 1:39 pm
by answerhappygod
Solidity files:

A. can't be split across multiple files, everything should be in one single file.
B. can be split across multiple files, but every contract must be in a file with the same name as the contract itself.
C. can be spread across multiple files. To import all contract from a file you can use "import 'myfile.sol'. To import Contract MyContract from myfile.sol you use "import {MyContract as SomeContract} from 'myfile.sol';".