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

Opcodes for tx inputs, outputs, and witnesses #172

Merged
merged 2 commits into from
May 18, 2021

Conversation

adlerjohn
Copy link
Contributor

@adlerjohn adlerjohn commented May 14, 2021

Fixes #22.

Add new opcodes to get the start address and length of transaction inputs, outputs, and witnesses. These aren't contract opcodes, so they can be accessed in predicates as well. All other fields should be gettable using compile-time-constant offsets from either the transaction start address or the start address from one of these opcodes.

@adlerjohn adlerjohn added enhancement New feature or request comp:FVM Component: FuelVM labels May 14, 2021
@adlerjohn adlerjohn self-assigned this May 14, 2021
@adlerjohn adlerjohn requested review from vlopes11 and sezna May 14, 2021 19:58
@adlerjohn adlerjohn changed the title Opcode for tx inputs, outputs, and witnesses Opcodes for tx inputs, outputs, and witnesses May 14, 2021
@adlerjohn adlerjohn merged commit 2d4104d into master May 18, 2021
@adlerjohn adlerjohn deleted the adlerjohn/opcodes_access_tx branch May 18, 2021 19:10
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.

Opcodes to access parts of the tx
2 participants