Skip to content

Commit

Permalink
fix: [pallet-tee-worker] confused Error use of CesealBin with Cesea…
Browse files Browse the repository at this point in the history
…lWorker
  • Loading branch information
0xbillw committed May 9, 2024
1 parent 65eb951 commit 49c054b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pallets/tee-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ pub mod pallet {
MasterKeyMismatch,
MasterKeyUninitialized,
InvalidMasterKeyApplySigningTime,
/// Ceseal related

CesealAlreadyExists,

CesealBinAlreadyExists,
CesealBinNotFound,

CannotExitMasterKeyHolder,
Expand Down Expand Up @@ -682,7 +684,7 @@ pub mod pallet {
T::GovernanceOrigin::ensure_origin(origin)?;

let mut allowlist = CesealBinAllowList::<T>::get();
ensure!(!allowlist.contains(&ceseal_hash), Error::<T>::CesealAlreadyExists);
ensure!(!allowlist.contains(&ceseal_hash), Error::<T>::CesealBinAlreadyExists);

allowlist.push(ceseal_hash.clone());
CesealBinAllowList::<T>::put(allowlist);
Expand Down

0 comments on commit 49c054b

Please sign in to comment.