Skip to content

Commit d55691c

Browse files
majectykseo
authored andcommitted
Check AssetTransfer's network_id in parcel verify logic
1 parent 00a71d5 commit d55691c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/src/parcel.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,14 @@ impl UnverifiedParcel {
382382
return Err(ParcelError::MetadataTooBig)
383383
}
384384
}
385-
_ => {}
385+
Transaction::AssetTransfer {
386+
network_id,
387+
..
388+
} => {
389+
if network_id != &self.network_id {
390+
return Err(ParcelError::InvalidNetworkId)
391+
}
392+
}
386393
}
387394
}
388395
}

0 commit comments

Comments
 (0)