ethereumjs-monorepo

@ethereumjs/statemanager


@ethereumjs/statemanager / addMerkleStateStorageProof

Function: addMerkleStateStorageProof()

addMerkleStateStorageProof(sm, storageProof, storageHash, address, safe): Promise<void>

Defined in: proof/merkle.ts:90

Adds a storage proof to the state manager

Parameters

sm

MerkleStateManager

storageProof

StorageProof[]

The storage proof

storageHash

`0x${string}`

The root hash of the storage trie

address

Address

The address

safe

boolean = false

Whether or not to verify if the reported roots match the current storage root

Returns

Promise<void>