Skip to content

Commit

Permalink
pretty print stateroot
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Oct 13, 2023
1 parent 8408df7 commit 3d64693
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/execution/vmexecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,16 +521,16 @@ export class VMExecution extends Execution {
this.config.logger.warn(
`${errorMsg}, backStepping vmHead to number=${backStepTo} hash=${short(
backStepToHash ?? 'na'
)} hasParentStateRoot=${backStepToRoot ?? 'na'}:\n${error}`
)} hasParentStateRoot=${short(backStepToRoot ?? 'na')}:\n${error}`
)
await this.vm.blockchain.setIteratorHead('vm', backStepToHash)
} else {
this.config.logger.error(
`${errorMsg}, couldn't back step to vmHead number=${backStepTo} hash=${short(
backStepToHash ?? 'na'
)} hasParentStateRoot=${hasParentStateRoot} stateRoot=${
)} hasParentStateRoot=${hasParentStateRoot} stateRoot=${short(
backStepToRoot ?? 'na'
}:\n${error}`
)}:\n${error}`
)
}
} else {
Expand Down

0 comments on commit 3d64693

Please sign in to comment.