You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When faking a return fake.function.returns(1) allow the developer to explicit the gas consumption that he wants that return to use fake.function.returns(1, { gasUsed: 1e6 })
With this feature, a developer can add all the gas settings for the fakes (transfer uses 20k, approve uses 10k, …) and get a more realistic outcome in the gas test for each function.
It should allow to explicit gasUsed for a particular call (fake.function.returnsAtCall(… { gasUsed: 1e6}).
The text was updated successfully, but these errors were encountered:
When faking a return
fake.function.returns(1)
allow the developer to explicit the gas consumption that he wants that return to usefake.function.returns(1, { gasUsed: 1e6 })
With this feature, a developer can add all the gas settings for the fakes (transfer uses 20k, approve uses 10k, …) and get a more realistic outcome in the gas test for each function.
It should allow to explicit gasUsed for a particular call (
fake.function.returnsAtCall(… { gasUsed: 1e6}
).The text was updated successfully, but these errors were encountered: