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

Add variable output types #60

Merged
merged 3 commits into from
Feb 12, 2021
Merged

Add variable output types #60

merged 3 commits into from
Feb 12, 2021

Conversation

adlerjohn
Copy link
Contributor

@adlerjohn adlerjohn commented Feb 10, 2021

Fixes #35.

Add two output types:

  1. Variable based on transaction execution
  2. Change to refund unspent gas and free coins to

The plan for variable outputs is to have an opcode to set an output (#22), e.g. send <output_index> <to> <amount>. This would revert if the output is already set, or if the amount is 0. Unlike the accounts data model, with UTXOs transfers involve actually creating a new object instead of updating an existing object.

@adlerjohn adlerjohn added the enhancement New feature or request label Feb 10, 2021
@adlerjohn adlerjohn self-assigned this Feb 10, 2021
@adlerjohn adlerjohn merged commit 261ada2 into master Feb 12, 2021
@adlerjohn adlerjohn deleted the adlerjohn-change_output branch February 12, 2021 15:04
@adlerjohn adlerjohn added the comp:FVM Component: FuelVM label Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:FVM Component: FuelVM enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add change output type
1 participant