current position:Home>How does truss deploy multi file contracts and merge contract files

How does truss deploy multi file contracts and merge contract files

2022-02-03 23:23:17 Q & A of Denglian community

There is one contract in each document , The main contract is through import './xxx.sol' At that time, other contracts were introduced ,migration How is the document written ,?




Take the answer 1:

have access to truffle-flattener Tools

install :

> npm install truffle-flattener -g

Use :

> truffle-flattener   Target deployment original file .sol >   The merged file name .sol





Other answers 1:


Other answers 2:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032323148255.html

Random recommended