Skip to content

Commit

Permalink
fix privacy precompile on eth/tracers/api.go (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
achraf17 committed Jun 8, 2022
1 parent 26c03b2 commit bc5ff3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eth/tracers/api.go
Expand Up @@ -948,15 +948,15 @@ func (api *API) traceTx(ctx context.Context, message core.Message, txctx *txTrac
}

// Run the transaction with tracing enabled.
vmconf := vm.Config{Debug: true, Tracer: tracer, ApplyOnPartyOverride: &psm.ID}
vmenv := vm.NewEVM(vmctx, txContext, statedb, privateStateDbToUse, api.backend.ChainConfig(), vmconf)
vmconf := &vm.Config{Debug: true, Tracer: tracer, ApplyOnPartyOverride: &psm.ID}
vmenv := vm.NewEVM(vmctx, txContext, statedb, privateStateDbToUse, api.backend.ChainConfig(), *vmconf)
vmenv.SetCurrentTX(txctx.tx)
vmenv.InnerApply = func(innerTx *types.Transaction) error {
header, err := api.backend.HeaderByHash(ctx, txctx.hash)
header, err := api.backend.HeaderByHash(ctx, txctx.block)
if err != nil {
return err
}
return applyInnerTransaction(api.backend.GetBlockchain(), statedb, privateStateDbToUse, header, txctx.tx, vmconf, privateStateRepo.IsMPS(), privateStateRepo, vmenv, innerTx, txctx.index)
return applyInnerTransaction(api.backend.GetBlockchain(), statedb, privateStateDbToUse, header, txctx.tx, *vmconf, privateStateRepo.IsMPS(), privateStateRepo, vmenv, innerTx, txctx.index)
}
// End Quorum

Expand Down

0 comments on commit bc5ff3f

Please sign in to comment.