Skip to content

Commit 15e35aa

Browse files
ali-behjatiReisen
authored andcommitted
Fix wormhole message parsing
1 parent fca22a5 commit 15e35aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hermes/src/store.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ impl Store {
7171
pub async fn store_update(&self, update: Update) -> Result<()> {
7272
let slot = match update {
7373
Update::Vaa(vaa_bytes) => {
74-
let vaa = serde_wormhole::from_slice::<Vaa<Vec<u8>>>(&vaa_bytes)?;
74+
let vaa =
75+
serde_wormhole::from_slice::<Vaa<&serde_wormhole::RawMessage>>(&vaa_bytes)?;
7576
let payload = WormholePayload::try_from_bytes(&vaa.payload, &vaa_bytes)?;
7677

7778
// FIXME: Validate the VAA

0 commit comments

Comments
 (0)