Skip to content

Commit

Permalink
deref impl
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoorchashm37 committed Dec 7, 2024
1 parent 3986cae commit 159faa4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/types/src/contract_payloads/angstrom.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{
collections::{HashMap, HashSet},
hash::Hash,
ops::Deref,
sync::Arc
};

Expand Down Expand Up @@ -1050,6 +1051,14 @@ impl AngstromBundle {
#[derive(Debug, Hash, Eq, PartialEq, Copy, Clone)]
pub struct AngstromPoolPartialKey([u8; 27]);

impl Deref for AngstromPoolPartialKey {
type Target = [u8; 27];

fn deref(&self) -> &Self::Target {
&self.0
}
}

#[derive(Debug, Copy, Clone)]
pub struct AngPoolConfigEntry {
pub pool_partial_key: AngstromPoolPartialKey,
Expand Down

0 comments on commit 159faa4

Please sign in to comment.