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

port a select subset of the changes from mixed transactions for candidate 1.2 #1909

Merged

Conversation

cbeck88
Copy link
Contributor

@cbeck88 cbeck88 commented May 3, 2022

The changes ported here, from (#1827) are:

  • Rename token_id to fee_token_id in TxPrefix. This avoids a breaking
    change between this and 1.3 in the hashes.
  • Make TransactionBuilder::new take a fee amount instead of a fee token id
    This also changes te memo builder trait, so that it will be compatible with
    the burn redemption memo builder which we hope to port next.
    This also makes TransactionBuilder::new possibly return an error.
  • Adapt all clients and sdks for TransactionBuilder::new changes.
  • Adapt all tests for this change
  • Bring the Amount::new function which makes the test code nicer.

This does NOT port:

  • Any other changes to transaction builder or tx protos
  • The change that makes add_output take an amount instead of a value: u64. That is needed for mixed transactions but isn't needed here, and requires more changes to the clients and sdks, so we avoid it in this branch.

…date 1.2

The changes ported here are:
* Rename `token_id` to `fee_token_id` in `TxPrefix`. This avoids a breaking
  change between this and 1.3 in the hashes.
* Make `TransactionBuilder::new` take a fee amount instead of a fee token id
  This also changes te memo builder trait, so that it will be compatible with
  the burn redemption memo builder which we hope to port next.
  This also makes `TransactionBuilder` possibly return an error.
* Adapt all clients and sdks for `TransactionBuilder::new` changes.
* Adapt all tests for this change
* Bring the  `Amount::new` function which makes the test code nicer.
transaction/std/src/transaction_builder.rs Outdated Show resolved Hide resolved
@remoun remoun requested a review from a team May 3, 2022 18:56
@cbeck88 cbeck88 merged commit 73ee430 into candidate-1.2 May 4, 2022
@cbeck88 cbeck88 deleted the port-improvements-to-amount-and-transaction-builder branch May 4, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants