Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvol committed Jul 24, 2023
1 parent 10220b8 commit 26af04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function compile(outdir: string) {
for (const externalContractPackage of externalContractPackages) {
console.log(`Building external contracts for ${externalContractPackage.name}`)
exec(
`yarn run truffle compile --silent --contracts_directory=./lib/${externalContractPackage.path}/contracts --contracts_build_directory=./build/contracts-${externalContractPackage.name}`
`yarn run truffle compile --silent --contracts_directory=./lib/${externalContractPackage.path}/contracts --contracts_build_directory=./build/contracts-${externalContractPackage.name}` // todo change to outdir
)
}

Expand All @@ -117,7 +117,7 @@ function compile(outdir: string) {

console.log(`Building contracts using 0.8`)
exec(
`yarn run truffle compile --silent --contracts_directory=./contracts-0.8 --contracts_build_directory=./build/contracts-0.8 --config truffle-config0.8.js`
`yarn run truffle compile --contracts_directory="./contracts-0.8" --contracts_build_directory=${outdir}/contracts-0.8 --config truffle-config0.8.js`
)
} else {
console.log("0.8 folder doesn't exist")
Expand Down

0 comments on commit 26af04c

Please sign in to comment.