modifyAccountFields
modifyAccountFields(
baseState
,skipFetchingFromFork
?): (address
,accountFields
) =>Promise
<void
>
Gets the account associated with address
, modifies the given account
fields, then saves the account into state. Account fields can include
nonce
, balance
, storageRoot
, and codeHash
.
Parameters
• baseState: BaseState
• skipFetchingFromFork?: boolean
Returns
Function
Parameters
• address: EthjsAddress
• accountFields: Partial
<Pick
<EthjsAccount
, "nonce"
| "balance"
| "storageRoot"
| "codeHash"
>>
Returns
Promise
<void
>