Open holic opened 2 hours ago
note that whatever uses this new may need to override the rest of the actions in the call stack (e.g. prepareTransactionRequest
) due to the issue demonstrated in https://github.com/wevm/viem/pull/2680#discussion_r1739700440
currently we fetch+override fees in
writeContract
andsendTransaction
(which recently lead to a bug and fixed in https://github.com/latticexyz/mud/pull/3288)instead, we could add an action override for
estimateFeesPerGas
that would cache/refresh these values and allow us to remove the manual overrides of args inwriteContract
/sendTransaction