diff options
Diffstat (limited to 'core/state/statedb_test.go')
-rw-r--r-- | core/state/statedb_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index cbd5bc75e..69392d972 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -276,6 +276,15 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction { }, args: make([]int64, 1), }, + { + name: "AddPreimage", + fn: func(a testAction, s *StateDB) { + preimage := []byte{1} + hash := common.BytesToHash(preimage) + s.AddPreimage(hash, preimage) + }, + args: make([]int64, 1), + }, } action := actions[r.Intn(len(actions))] var nameargs []string |