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

Encode the tx inputs/outputs order in *TxLayout type for each tx type #270

Open
greenhat opened this issue May 9, 2023 · 0 comments
Open

Comments

@greenhat
Copy link
Member

greenhat commented May 9, 2023

Motivation

In some contracts, often, there are required box positions for particular boxes (refresh, pool, buyback boxes, etc.). Usually, the order is defined by adding boxes to the vector, which is error-prone (think swapping two lines of code).

Implementation details

*TxLayout is constructed with specific *BoxWrapper types and produces the box array for a tx builder.

@greenhat greenhat added this to the v2.0-RC mainnet launch milestone May 9, 2023
@greenhat greenhat removed this from the v2.0-RC mainnet launch milestone Jun 9, 2023
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

1 participant