We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 050445d commit 34eacf2Copy full SHA for 34eacf2
contracts/staking/src/state.rs
@@ -42,7 +42,8 @@ pub fn load_map<T: DeserializeOwned>(
42
prefix: &[u8],
43
key: &CanonicalAddr,
44
) -> StdResult<T> {
45
- may_load_map(storage, prefix, key)?.ok_or_else(|| StdError::msg(format!("map value for {key} not found")))
+ may_load_map(storage, prefix, key)?
46
+ .ok_or_else(|| StdError::msg(format!("map value for {key} not found")))
47
}
48
49
/// Investment info is fixed at initialization, and is used to control the function of the contract
0 commit comments