Skip to content

Commit

Permalink
refactor(taiko): update provingPreflightResult to use common.Address …
Browse files Browse the repository at this point in the history
…for contracts
  • Loading branch information
johntaiko committed Jan 24, 2025
1 parent 160e3dc commit ac059ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eth/tracers/taiko_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ type TaikoBackend interface {

// provingPreflightResult is the result of a proving preflight request.
type provingPreflightResult struct {
Block *types.Block `json:"block"`
InitAccountProofs []*ethapi.AccountResult `json:"initAccountProofs"`
Contracts map[common.Hash]*hexutil.Bytes `json:"contracts"`
AncestorHashes map[uint64]common.Hash `json:"ancestorHashes"`
Error string `json:"error,omitempty"`
Block *types.Block `json:"block"`
InitAccountProofs []*ethapi.AccountResult `json:"initAccountProofs"`
Contracts map[common.Address]*hexutil.Bytes `json:"contracts"`
AncestorHashes map[uint64]common.Hash `json:"ancestorHashes"`
Error string `json:"error,omitempty"`
}

// provingPreflightTask represents a single block preflight task.
Expand Down Expand Up @@ -194,7 +194,7 @@ func (api *API) provingPreflights(start, end *types.Block, config *TraceConfig,
break
}
task.preflight.InitAccountProofs = append(task.preflight.InitAccountProofs, proof)
task.preflight.Contracts[proof.CodeHash] = (*hexutil.Bytes)(&code)
task.preflight.Contracts[addr] = (*hexutil.Bytes)(&code)
}
task.preflight.AncestorHashes = touchedHashes

Expand Down

0 comments on commit ac059ae

Please sign in to comment.