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
Use gasBurned retrieved from "estimatedgas" endpoint to update the gasBudget field in metadata.
The gasBudget should be set to gasBurned + 1. The "1" is needed for it to work, some optimization they have in wasp.
i.e. metadata = getLayer2MetadataForTransfer(transactionDetails, gasEstimatePayload.gasBurned + 1)
Requirements
Improve the gasBudget by using the gasBurned
Add 1 grain of salt to it
Leave a comment to explain the magic "1"
Creation checklist
I have assigned this task to the correct people
I have added the most appropriate labels
I have linked the correct milestone and/or project
The text was updated successfully, but these errors were encountered:
Task description
Improve gas estimation for layer2 transactions
Use
gasBurned
retrieved from "estimatedgas" endpoint to update thegasBudget
field in metadata.The
gasBudget
should be set togasBurned + 1
. The "1" is needed for it to work, some optimization they have in wasp.i.e.
metadata = getLayer2MetadataForTransfer(transactionDetails, gasEstimatePayload.gasBurned + 1)
Requirements
gasBudget
by using thegasBurned
Creation checklist
The text was updated successfully, but these errors were encountered: