Skip to content

Commit c68494d

Browse files
committed
fix evictWasm revert
1 parent f891743 commit c68494d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/journal_arbitrum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type EvictWasm struct {
4242

4343
func (ch EvictWasm) revert(s *StateDB) {
4444
asm, err := s.TryGetActivatedAsm(ch.ModuleHash) // only happens in native mode
45-
if err == nil && len(asm) == 0 {
45+
if err == nil && len(asm) != 0 {
4646
//if we failed to get it - it's not in the current rust cache
4747
CacheWasmRust(asm, ch.ModuleHash, ch.Version, ch.Debug)
4848
}

0 commit comments

Comments
 (0)