Skip to content

Commit

Permalink
fix: use legacy tx for postdeploy on garnet/redstone
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 authored Jun 5, 2024
1 parent 978df93 commit a4839a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/src/runDeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ export async function runDeploy(opts: DeployOptions): Promise<WorldDeploy> {
modules,
withWorldProxy: configV2.deploy.upgradeableWorldImplementation,
});
const chainId = await getChainId(client);
if (opts.worldAddress == null || opts.alwaysRunPostDeploy) {
// Manual workaround for Garnet/Redstone which currently always require a
// non-zero priority fee. See: https://github.com/foundry-rs/foundry/issues/7806
if (chainId == 17069 || chainId == 690) {
opts.forgeScriptOptions = (opts.forgeScriptOptions ?? "") + " --legacy";
}
await postDeploy(
config.postDeployScript,
worldDeploy.address,
Expand All @@ -155,7 +161,6 @@ export async function runDeploy(opts: DeployOptions): Promise<WorldDeploy> {
};

if (opts.saveDeployment) {
const chainId = await getChainId(client);
const deploysDir = path.join(config.deploysDirectory, chainId.toString());
mkdirSync(deploysDir, { recursive: true });
writeFileSync(path.join(deploysDir, "latest.json"), JSON.stringify(deploymentInfo, null, 2));
Expand Down

0 comments on commit a4839a0

Please sign in to comment.