Skip to content

Commit

Permalink
bump HS and update types
Browse files Browse the repository at this point in the history
  • Loading branch information
bfish713 committed Jul 22, 2024
1 parent 751f717 commit d33fda9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 54 deletions.
81 changes: 34 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions types/src/v0/impls/auction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use ethers::types::Signature;
use hotshot_types::{
data::ViewNumber,
traits::{
auction_results_provider::HasUrl, node_implementation::ConsensusTime,
auction_results_provider::HasUrls, node_implementation::ConsensusTime,
signature_key::BuilderSignatureKey,
},
};
Expand Down Expand Up @@ -215,17 +215,17 @@ impl BidTx {
}
}

impl HasUrl for BidTx {
impl HasUrls for BidTx {
/// Get the `url` field from the body.
fn url(&self) -> Url {
self.body.url()
fn urls(&self) -> Vec<Url> {
self.body.urls()
}
}

impl HasUrl for BidTxBody {
impl HasUrls for BidTxBody {
/// Get the cloned `url` field.
fn url(&self) -> Url {
self.url.clone()
fn urls(&self) -> Vec<Url> {
vec![self.url.clone()]
}
}

Expand Down

0 comments on commit d33fda9

Please sign in to comment.