Skip to content

Commit

Permalink
fix(pg): Fix issue where reading registry code fails on live network …
Browse files Browse the repository at this point in the history
…during proposal
  • Loading branch information
RPate97 committed Jun 16, 2023
1 parent e238f26 commit 83a83e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/itchy-kings-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/plugins': patch
---

Fix issue where reading registry code fails on live network during proposal
4 changes: 3 additions & 1 deletion packages/plugins/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ yargs(hideBin(process.argv))
// compiled. It's also convenient because it invokes `ts-node`, which allows us to support
// TypeScript configs. This can't be done by calling the TypeScript propose function
// directly because calling `npx chugsplash` uses Node, not `ts-node`.
await execAsync(`forge script ${proposeContractPath}`)
await execAsync(
`forge script ${proposeContractPath} --rpc-url ${network}`
)
} catch ({ stderr }) {
spinner.fail('Proposal failed.')
// Strip \n from the end of the error message, if it exists
Expand Down

0 comments on commit 83a83e2

Please sign in to comment.