I am working with a contract that has multiple 'contract' statements. Why does Remix deploy one at a time, and how do several contracts get deployed with multiple?

Jan 23, 2021, 3:33 PM
should additional contracts be converted to functions?
Jan 23, 2021, 3:46 PM
You can either put the code in one contract, use "contract A {}" and then "contract B is A {}" or deploy contracts separately and point from another contract to them.
Jan 23, 2021, 4:00 PM
"contract B is A{}" ........ do you have to import A first?
Jan 23, 2021, 4:05 PM
Yes sure, you have to have A and B in one file then or import the other file.
Jan 23, 2021, 4:08 PM
Makes sense, thank you.
Jan 23, 2021, 4:09 PM
You're welcome :)
Jan 23, 2021, 4:09 PM

© 2024 Draquery.com All rights reserved.