Refactor
This commit is contained in:
parent
4fa9304b4f
commit
04806a551e
|
@ -164,7 +164,7 @@ impl Store {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(idx, message)| {
|
.map(|(idx, message)| {
|
||||||
Ok(MessageState::new(
|
Ok(MessageState::new(
|
||||||
message.clone(),
|
*message,
|
||||||
ProofSet {
|
ProofSet {
|
||||||
wormhole_merkle_proof: wormhole_merkle_message_states_proofs
|
wormhole_merkle_proof: wormhole_merkle_message_states_proofs
|
||||||
.get(idx)
|
.get(idx)
|
||||||
|
|
|
@ -13,13 +13,11 @@ pub struct MessageIdentifier {
|
||||||
pub type_: MessageType,
|
pub type_: MessageType,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Debug)]
|
#[derive(Clone, PartialEq, Debug)]
|
||||||
pub struct ProofSet {
|
pub struct ProofSet {
|
||||||
pub wormhole_merkle_proof: WormholeMerkleMessageProof,
|
pub wormhole_merkle_proof: WormholeMerkleMessageProof,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub type Slot = u64;
|
pub type Slot = u64;
|
||||||
pub type UnixTimestamp = i64;
|
pub type UnixTimestamp = i64;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue