Skip to content

putContractStorage

putContractStorage(baseState, skipFetchingFromFork?): (address, key, value) => Promise<void>

Adds value to the cache for the account corresponding to address at the provided key. Cannot be more than 32 bytes. Leading zeros are stripped. If it is empty or filled with zeros, deletes the value.

Parameters

baseState: BaseState

skipFetchingFromFork?: boolean

Returns

Function

Parameters

address: EthjsAddress

key: Uint8Array

value: Uint8Array

Returns

Promise<void>

Defined in

packages/state/src/actions/putContractStorage.js:12