-
Notifications
You must be signed in to change notification settings - Fork 1
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
bump astria and penumbra deps #5
Conversation
crates/relayer/src/transfer.rs
Outdated
timeout_height: Some(timeout_height), | ||
timeout_time: timeout_timestamp.nanoseconds(), | ||
fee_asset_id: default_native_asset_id().as_ref().to_vec(), | ||
fee_asset: "nria".to_string(), // TODO: make this configurable |
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.
IMO use astria_core::primitive::v1::Asset
just to make sure:
fee_asset: "nria".parse::<Denom>().expect("nria is a valid denom").to_string(),
crates/relayer/src/transfer.rs
Outdated
use astria_core::sequencer::v1::asset::default_native_asset_id; | ||
use astria_core::primitive::v1::Address; | ||
let sender: Address = sender | ||
.to_string() |
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.
This has impl AsRef<str> for Sender
, so this should work without allocation: sender.as_ref().parse()
, or more explicitly AsRef::<str>::as_ref(&sender).parse()
(might be necessary if it can't decide what to use as the as-ref target).
primitive::v1::Address, | ||
}; | ||
let verification_key = | ||
VerificationKey::try_from(self.signing_key.verifying_key().to_bytes()) |
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.
You could provide a unit test to ensure that this will keep on working.
No description provided.