Creates a new StateOverrideBuilder instance
Optional
stateOverrides: StateOverrideSetOptional initial state overrides to merge with new overrides
Builds and returns the final state override set
The merged state overrides or undefined if no overrides exist
Overrides the balance for a specific address
The Ethereum address to override the balance for
The new balance value as a bigint
The builder instance for method chaining
Overrides the contract code for a specific address
The Ethereum address to override the code for
The new contract bytecode as a hex string
The builder instance for method chaining
Overrides the paymaster deposit amount in the EntryPoint contract
The address of the EntryPoint contract
The address of the Paymaster contract
The deposit amount to set, defaults to PAYMASTER_DEPOSIT_MAX
The builder instance for method chaining
Builder class for creating and managing state overrides in Ethereum transactions. Allows for overriding balances, code, and paymaster deposits in a chainable manner.
Example