We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db85799 commit 41776f6Copy full SHA for 41776f6
smartcontract/programs/doublezero-serviceability/src/processors/link/accept.rs
@@ -75,6 +75,11 @@ pub fn process_accept_link(
75
return Err(DoubleZeroError::InvalidStatus.into());
76
}
77
78
+ // Validate that the stored side_z_pk matches the provided side_z_account
79
+ if link.side_z_pk != *side_z_account.key {
80
+ return Err(DoubleZeroError::InvalidAccountOwner.into());
81
+ }
82
+
83
// Validate Side Z Device
84
let side_z_dev = Device::try_from(side_z_account)?;
85
if side_z_dev.contributor_pk != *contributor_account.key {
0 commit comments