StateOverrides.fromRpc
Converts an StateOverrides.Rpc
to an StateOverrides.StateOverrides
.
Imports
Named
import { StateOverrides } from 'ox'
Examples
import { StateOverrides } from 'ox'
const stateOverrides = StateOverrides.fromRpc({
'0x0000000000000000000000000000000000000000': {
balance: '0x1',
},
})
Definition
function fromRpc(
rpcStateOverrides: Rpc,
): StateOverrides
Source: src/core/StateOverrides.ts
Parameters
rpcStateOverrides
- Type:
Rpc
The RPC state overrides to convert.
Return Type
An instantiated StateOverrides.StateOverrides
.
StateOverrides