-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cardano: Update and regenerate protobuffs #85
Cardano: Update and regenerate protobuffs #85
Conversation
a120086
to
4e23503
Compare
4e23503
to
3f04a0f
Compare
tests/subtests/test_cardano.rs
Outdated
allow_zero_ttl: false, | ||
}; | ||
|
||
let witness = bitbox.cardano_sign_transaction(transaction).await.unwrap(); |
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.
I think you'll need to check for success if the firmware version is >= 9.21.0, and for failure otherwise, as older firmwares don't yet have support for vote delegation.
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.
Please add a note in CHANGELOG-rust.md under 0.6.0
b365ed6
to
cb6bee3
Compare
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.
Thanks. CI fails b/c it seems rustfmt
didn't format the code:
Diff in /home/runner/work/bitbox-api-rs/bitbox-api-rs/tests/subtests/test_cardano.rs:207:
allow_zero_ttl: false,
};
- if semver::VersionReq::parse(">=9.21.0").unwrap().matches(bitbox.version()) {
+ if semver::VersionReq::parse(">=9.21.0")
+ .unwrap()
+ .matches(bitbox.version())
+ {
let witness = bitbox.cardano_sign_transaction(transaction).await.unwrap();
assert_eq!(witness.shelley_witnesses.len(), 2);
assert_eq!(
Error: Process completed with exit code 1.
Update and regenerate protobuffs to allow vote delegation on cardano
cb6bee3
to
6ecf013
Compare
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.
LGTM
Update and regenerate protobuffs to allow vote delegation on cardano.