We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db85799 commit fc985e7Copy full SHA for fc985e7
smartcontract/programs/doublezero-serviceability/src/processors/device/closeaccount.rs
@@ -84,6 +84,9 @@ pub fn process_closeaccount_device(
84
if device.exchange_pk != *exchange_account.key {
85
return Err(DoubleZeroError::InvalidExchangePubkey.into());
86
}
87
+ if device.contributor_pk != *contributor_account.key {
88
+ return Err(DoubleZeroError::InvalidContributorPubkey.into());
89
+ }
90
let mut contributor = Contributor::try_from(contributor_account)?;
91
let mut location = Location::try_from(location_account)?;
92
let mut exchange = Exchange::try_from(exchange_account)?;
0 commit comments