-
Hello, I am trying to write some classes which wrap an ethers contract, which help to manage state and functionality. In order to allow users to specify some overrides for functions which generate transactions, I am trying to add an optional overrides parameter in the wrapper class API. The issue I have is our test suite has nearly doubled in execution time vs the variations without an optional overrides. Should I be attempting something different to achieve a similar functionality? Is this a separate issue entirely unrelated to ethers? Any advice would be very much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There isn’t really anything special that ethers does with overrides, other than copy them and verify the overrides make sense. On fact if there is a gasLimit in the overrides, it should reduce the execution time, since that avoids the estimateGas call. So nothing comes to mind that should cause any slow down. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response! |
Beta Was this translation helpful? Give feedback.
There isn’t really anything special that ethers does with overrides, other than copy them and verify the overrides make sense.
On fact if there is a gasLimit in the overrides, it should reduce the execution time, since that avoids the estimateGas call.
So nothing comes to mind that should cause any slow down.