diff --git a/data_structures/src/staking/stakes.rs b/data_structures/src/staking/stakes.rs index d84f06fca..ee483c77c 100644 --- a/data_structures/src/staking/stakes.rs +++ b/data_structures/src/staking/stakes.rs @@ -166,6 +166,11 @@ where ..Default::default() })); + if !stake_found { + stake.key.write()?.validator = key.validator.clone(); + stake.key.write()?.withdrawer = key.withdrawer.clone(); + } + // Actually increase the number of coins stake .value