is there a way to set maxFeePerGas and maxPriorityFeePerGas explicitly when using hardhat & ethers?

i thought about using hardhat's generated contract classes in production code because they are typed so nicely. however, hardhat defines the type of the overrides as follows for some reason:

Overrides & { from?: PromiseOrValue }

there seem to be no runtime restrictions, so passing something like

{
maxFeePerGas: 6e9,
maxPriorityFeePerGas: 1e9,
} as any

should work (if i'm reading hardhat's code correctly). however, that can't be the way to go

Jul 27, 2022, 2:05 PM

© 2024 Draquery.com All rights reserved.