Skip to content

Commit e5ba012

Browse files
committed
feat: cat id in payload
1 parent d6361a6 commit e5ba012

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rust/rbac-registration/src/registration/cardano/validation.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ impl From<anyhow::Error> for RbacValidationError {
5353
}
5454
}
5555

56-
/// Represents the result yielded by `update_chain` or `start_new_chain` upon successful execution.
56+
/// Represents the result yielded by `update_chain` or `start_new_chain` upon successful
57+
/// execution.
5758
pub struct RbacValidationSuccess {
59+
/// A Catalyst ID of the chain this registration belongs to.
60+
pub catalyst_id: CatalystId,
5861
/// A list of stake addresses that were added to the chain.
5962
pub stake_addresses: HashSet<StakeAddress>,
6063
/// A list of role public keys used in this registration.
@@ -150,6 +153,7 @@ where
150153
}
151154

152155
Ok(RbacValidationSuccess {
156+
catalyst_id,
153157
stake_addresses,
154158
public_keys,
155159
// Only new chains can take ownership of stake addresses of existing chains, so in this
@@ -260,6 +264,7 @@ where
260264
}
261265

262266
Ok(RbacValidationSuccess {
267+
catalyst_id,
263268
stake_addresses: new_addresses,
264269
public_keys,
265270
modified_chains: updated_chains.into_iter().collect(),

0 commit comments

Comments
 (0)