Skip to content

putContractCode

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

Adds value to the state trie as code, and sets codeHash on the account corresponding to address to reference this.

Parameters

baseState: BaseState

skipFetchingFromFork?: boolean

Returns

Function

Parameters

address: EthjsAddress

value: Uint8Array

Returns

Promise<void>

Defined in

packages/state/src/actions/putContractCode.js:10