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

bump astria and penumbra deps #5

Merged
merged 4 commits into from
Jul 2, 2024
Merged

bump astria and penumbra deps #5

merged 4 commits into from
Jul 2, 2024

Conversation

noot
Copy link
Collaborator

@noot noot commented Jun 27, 2024

No description provided.

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
Copy link
Member

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(),

use astria_core::sequencer::v1::asset::default_native_asset_id;
use astria_core::primitive::v1::Address;
let sender: Address = sender
.to_string()
Copy link
Member

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())
Copy link
Member

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.

@noot noot merged commit 2813f96 into astria Jul 2, 2024
5 of 33 checks passed
@noot noot deleted the noot/bump-deps branch July 2, 2024 00:06
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.

2 participants