diff --git a/src/periphery/forge/index.ts b/src/periphery/forge/index.ts index 2d1c01f..2a2c4c4 100644 --- a/src/periphery/forge/index.ts +++ b/src/periphery/forge/index.ts @@ -1,3 +1,4 @@ +import core from '@actions/core' import { $ } from 'dax-sh' import { Address } from 'viem' @@ -7,6 +8,9 @@ export async function deployContract({ from, cwd, }: { contractName: string; rpc: string; from: Address; cwd: string }): Promise
{ - const result = await $`forge create --rpc-url ${rpc} --from ${from} ${contractName} --unlocked --json`.cwd(cwd).json() + const result = await $`forge create --broadcast --rpc-url ${rpc} --from ${from} ${contractName} --unlocked --json` + .cwd(cwd) + .json() + core.info(`Deployed spell ${contractName} to address ${result.deployedTo}`) return result.deployedTo }