Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dry-run API to validate all possible issues at once #1818

Closed
arboleya opened this issue Apr 10, 2024 · 1 comment
Closed

Improve dry-run API to validate all possible issues at once #1818

arboleya opened this issue Apr 10, 2024 · 1 comment

Comments

@arboleya
Copy link
Member

The idea is that the VM would ignore some rules and just dry-run the TX as best it can to completion. Each time some asset amount, contract, or variable UTXO is missing, it adds that to a log of missing data and continues the estimation run. All the missing data pieces encountered during the estimation call are discovered and returned in a single request to the API.

Implementing this solution would significantly reduce the number of total dry runs, relieving the burden on the SDK and node and allowing them to operate much faster, thereby enhancing execution efficiency for the users.

Note

One alternative is to run the VM via WASM to calculate everything. Still, since the WASM can be heavy in the MBs ballpark, it's currently not a feasible solution for front-end environments, so a change in the API could be a realistic solution.

cc @Voxelot @luizstacio

@xgreenx
Copy link
Collaborator

xgreenx commented Apr 10, 2024

Closing as a duplicate of the FuelLabs/fuel-vm#691

@xgreenx xgreenx closed this as completed Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants