ContractInterceptor.overrideNextTransaction() method
The next transaction executed will add/replace any overrides passed via the passed in hook.
Example
contract.interceptor.overrideNextTransaction(() => ({
gasLimit: 3000000,
}));
Signature:
overrideNextTransaction(hook: () => CallOverrides): void;
Parameters
Parameter | Type | Description |
---|---|---|
hook | () => CallOverrides | the hook to add or replace any CallOverrides (gas limit, gas price, nonce, from, value, etc...) |
Returns:
void
Remarks
Overridden values will be applied to the next transaction executed.