Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Test removed as the case that is covered should not occur and is prev…
Browse files Browse the repository at this point in the history
…ented by assert_eq in prepare_witness.go
  • Loading branch information
miha-stopar committed Sep 27, 2023
1 parent 3507fae commit beed49c
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2265,28 +2265,3 @@ func TestLongKey(t *testing.T) {

prepareWitness("LongKey", trieModifications, statedb)
}

func TestTrieDoesNotExist(t *testing.T) {
blockNum := 2000003
blockNumberParent := big.NewInt(int64(blockNum))
blockHeaderParent := oracle.PrefetchBlock(blockNumberParent, true, nil)
database := state.NewDatabase(blockHeaderParent)
statedb, _ := state.New(blockHeaderParent.Root, database, nil)
addr := common.HexToAddress("0xcaac46d9bd68bffb533320545a90cd92c6e98e58")

statedb.DisableLoadingRemoteAccounts()

key1 := common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000")
val1 := common.BigToHash(big.NewInt(int64(17)))

trieMod1 := TrieModification{
Type: StorageChanged,
Key: key1,
Value: val1,
Address: addr,
}

trieModifications := []TrieModification{trieMod1}

prepareWitness("StorageTrieDoesNotExist", trieModifications, statedb)
}

0 comments on commit beed49c

Please sign in to comment.