Skip to content

Commit

Permalink
use wasm targets from cachingDB in StateDB.RecordProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Aug 22, 2024
1 parent 2e8eafa commit c7d753f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/state/statedb_arbitrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ func (s *StateDB) StartRecording() {
s.arbExtraData.userWasms = make(UserWasms)
}

func (s *StateDB) RecordProgram(targets []ethdb.WasmTarget, moduleHash common.Hash) {
func (s *StateDB) RecordProgram(moduleHash common.Hash) {
targets := s.db.WasmTargets()
if len(targets) == 0 {
// nothing to record
return
Expand Down

0 comments on commit c7d753f

Please sign in to comment.