Skip to content

Commit

Permalink
unallocated key required for both iot and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Dec 14, 2023
1 parent 5a511d6 commit 135871e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions reward_index/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ impl Indexer {
.ok_or_else(|| anyhow!("operation fund key is required for IOT mode"))?,
settings::Mode::Mobile => String::new(),
},
unallocated_reward_key: match settings.mode {
settings::Mode::Mobile => settings
.unallocated_reward_entity_key()
.ok_or_else(|| anyhow!("unallocated reward key is required for MOBILE mode"))?,
settings::Mode::Iot => String::new(),
},
unallocated_reward_key: settings
.unallocated_reward_entity_key()
.ok_or_else(|| anyhow!("missing unallocated reward key"))?,
})
}

Expand Down

0 comments on commit 135871e

Please sign in to comment.