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 .invalidBlockVersion error that can now be thrown by rust FFI's #178

Conversation

the-real-adammork
Copy link
Collaborator

Motivation

A fix was made in the rust code to solve a potential panic if an unknown BlockVersion was passed in as a parameter to the TransactionBuilder. Unknown in this sense equals too "new".

The FFIs are being updated here: mobilecoinfoundation/mobilecoin#2335
libmobilecoin-ios-artifacs here: mobilecoinofficial/libmobilecoin#32

In this PR

  • Update code to catch and throw error if BlockVersion is invalid
  • Add test-case
  • Add error to enum

@the-real-adammork the-real-adammork force-pushed the task/transaction-builder-blockversion-newness-errors branch from a0588e6 to d04a10f Compare August 29, 2022 19:31
@the-real-adammork the-real-adammork changed the base branch from master to task/idempotence-release August 29, 2022 19:32
@carybakker carybakker merged commit dabfa27 into task/idempotence-release Aug 29, 2022
@carybakker carybakker deleted the task/transaction-builder-blockversion-newness-errors branch August 29, 2022 21:48
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

Successfully merging this pull request may close these issues.

None yet

3 participants