API ReferenceErrorsClass
TransactionPopulationError
This error is thrown if there is an error populating a transaction. This typically indicates a developer error, passing a falsy value for a required parameter or not validating parameter types properly.
Extends
Constructors
Constructor
new TransactionPopulationError( message, contract, functionName, params, cause?): TransactionPopulationError;Parameters
| Parameter | Type |
|---|---|
message | string |
contract | `0x${string}` | AnvilContract |
functionName | string |
params | unknown[] |
cause? | unknown |
Returns
TransactionPopulationError
Overrides
Properties
contract
readonly contract: `0x${string}` | AnvilContract;functionName
readonly functionName: string;params
readonly params: unknown[];Methods
walk()
walk<T>(errorType): T | undefined;Checks if the provided ErrorType is in the error hierarchy for the current error.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Error | The type of the error being searched for. |
Parameters
| Parameter | Type | Description |
|---|---|---|
errorType | (…args) => T | The error type to find. |
Returns
T | undefined
The error, if it is found in the hierarchy, otherwise undefined.