Skip to content

Remove return 0 script for transfers #3787

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

Open
danielbate opened this issue Mar 18, 2025 · 0 comments
Open

Remove return 0 script for transfers #3787

danielbate opened this issue Mar 18, 2025 · 0 comments
Labels
feat Issue is a feature

Comments

@danielbate
Copy link
Contributor

danielbate commented Mar 18, 2025

When instantiating a script transaction request, we set the script bytes to a simple script that returns 0.

this.script = arrayify(script ?? returnZeroScript.bytes);
this.scriptData = arrayify(scriptData ?? returnZeroScript.encodeScriptData());

For transfers this is redundant, and is unnecessarily increasing the cost of a transfer. fuel-core will allow us to keep the script field emty.

@danielbate danielbate added the feat Issue is a feature label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
None yet
Development

No branches or pull requests

1 participant