Skip to content

Remove return 0 script for transfers #3787

@danielbate

Description

@danielbate

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featIssue is a feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions