Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Kurcz <uint@lavabit.com>
  • Loading branch information
chipshort and uint authored Oct 11, 2022
1 parent 6497b11 commit 42b927d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/multi-test/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ impl ValidatorInfo {
}

const STAKING_INFO: Item<StakingInfo> = Item::new("staking_info");
/// (staker_addr, validator_addr) -> shares
const STAKES: Map<(&Addr, &Addr), Shares> = Map::new("stakes");
const VALIDATOR_MAP: Map<&Addr, Validator> = Map::new("validator_map");
/// Additional vec of validators, in case the `iterator` feature is disabled
Expand Down Expand Up @@ -519,7 +520,7 @@ impl Module for StakeKeeper {
&validator,
amount.clone(),
)?;
// move money from sender account to this module (note we can controller sender here)
// move money from sender account to this module (note we can control sender here)
if !amount.amount.is_zero() {
router.execute(
api,
Expand Down

0 comments on commit 42b927d

Please sign in to comment.