From 83a83e29203d7f579991b5c2712e95c09c5f6c79 Mon Sep 17 00:00:00 2001 From: Ryan Pate Date: Fri, 16 Jun 2023 15:08:31 -0700 Subject: [PATCH] fix(pg): Fix issue where reading registry code fails on live network during proposal --- .changeset/itchy-kings-brush.md | 5 +++++ packages/plugins/src/cli/index.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/itchy-kings-brush.md diff --git a/.changeset/itchy-kings-brush.md b/.changeset/itchy-kings-brush.md new file mode 100644 index 000000000..2f4d92eb0 --- /dev/null +++ b/.changeset/itchy-kings-brush.md @@ -0,0 +1,5 @@ +--- +'@chugsplash/plugins': patch +--- + +Fix issue where reading registry code fails on live network during proposal diff --git a/packages/plugins/src/cli/index.ts b/packages/plugins/src/cli/index.ts index 3eb6b0f8a..b881e094d 100644 --- a/packages/plugins/src/cli/index.ts +++ b/packages/plugins/src/cli/index.ts @@ -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