Skip to content

Commit

Permalink
fix run block log level (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Mar 26, 2024
1 parent 38cecad commit 34d643f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/chopsticks/src/plugins/run-block/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const cli = (y: Argv) => {
'Replay a block',
(yargs) => yargs.options(getYargsOptions(schema.shape)),
async (argv) => {
const context = await setupContext(schema.parse(argv), true)
const parsedArgv = schema.parse(argv)
const context = await setupContext(parsedArgv, true)

const header = await context.chain.head.header
const block = context.chain.head
Expand All @@ -58,7 +59,7 @@ export const cli = (y: Argv) => {
calls,
mockSignatureHost: false,
allowUnresolvedImports: false,
runtimeLogLevel: (argv.runtimeLogLevel as number) || 0,
runtimeLogLevel: parsedArgv['runtime-log-level'] || 0,
},
taskHandler(parent),
)
Expand Down

0 comments on commit 34d643f

Please sign in to comment.