From 24bb2ea4c23c8f0b716fd71a30dc5fbc681a9c21 Mon Sep 17 00:00:00 2001 From: Raid Ateir Date: Tue, 7 Nov 2023 17:19:09 +0100 Subject: [PATCH] fix small bug --- pallets/ddc-clusters/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/ddc-clusters/src/lib.rs b/pallets/ddc-clusters/src/lib.rs index 0ed7c0e78..6a7c0549b 100644 --- a/pallets/ddc-clusters/src/lib.rs +++ b/pallets/ddc-clusters/src/lib.rs @@ -257,7 +257,7 @@ pub mod pallet { // Error::::ClusterDoesNotExist); let cluster_gov_params = ClustersGovParams::::try_get(cluster_id) .map_err(|_| ClusterVisitorError::ClusterGovParamsNotSet)?; - match node_pub_key { + match node_type { NodeType::Storage => Ok(cluster_gov_params.storage_bond_size.saturated_into::()), NodeType::CDN => Ok(cluster_gov_params.cdn_bond_size.saturated_into::()),