-
Notifications
You must be signed in to change notification settings - Fork 1
Fix CI #11
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
Fix CI #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ test = [ | |
"debug", | ||
"glob", | ||
"micropython", | ||
"mintlayer", | ||
"nrf", | ||
"optiga", | ||
"protobuf", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,40 +9,40 @@ void handle_err(ByteArray *res) { | |
|
||
switch (res->len_or_err.err) { | ||
case WrongHashSize: | ||
mp_raise_ValueError("Invalid hash size"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid hash size")); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI: these changes fix compilation after the merge from upstream. Technically they should be part of #12 but I decided to put them here for easier review. |
||
break; | ||
case InvalidUtxoType: | ||
mp_raise_ValueError("Invalid UTXO type"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid UTXO type")); | ||
break; | ||
case InvalidAmount: | ||
mp_raise_ValueError("Invalid amount"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid amount")); | ||
break; | ||
case InvalidAccountCommand: | ||
mp_raise_ValueError("Invalid account command"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid account command")); | ||
break; | ||
case InvalidDestination: | ||
mp_raise_ValueError("Invalid destination"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid destination")); | ||
break; | ||
case InvalidIsTokenUnfreezable: | ||
mp_raise_ValueError("Invalid token unfreezable flag"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid token unfreezable flag")); | ||
break; | ||
case InvalidIsTokenFreezable: | ||
mp_raise_ValueError("Invalid token freezable flag"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid token freezable flag")); | ||
break; | ||
case InvalidVrfPublicKey: | ||
mp_raise_ValueError("Invalid VRF public key"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid VRF public key")); | ||
break; | ||
case InvalidPublicKey: | ||
mp_raise_ValueError("Invalid public key"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid public key")); | ||
break; | ||
case InvalidOutputTimeLock: | ||
mp_raise_ValueError("Invalid output time lock"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid output time lock")); | ||
break; | ||
case InvalidTokenTotalSupply: | ||
mp_raise_ValueError("Invalid token total supply"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Invalid token total supply")); | ||
break; | ||
default: | ||
mp_raise_ValueError("Unknown error"); | ||
mp_raise_ValueError(MP_ERROR_TEXT("Unknown error")); | ||
break; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: all these changes are to pacify Clippy, which doesn't like the seemingly useless
as_ref
calls.