Skip to content

Commit 34eacf2

Browse files
committed
Format
1 parent 050445d commit 34eacf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/staking/src/state.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ pub fn load_map<T: DeserializeOwned>(
4242
prefix: &[u8],
4343
key: &CanonicalAddr,
4444
) -> StdResult<T> {
45-
may_load_map(storage, prefix, key)?.ok_or_else(|| StdError::msg(format!("map value for {key} not found")))
45+
may_load_map(storage, prefix, key)?
46+
.ok_or_else(|| StdError::msg(format!("map value for {key} not found")))
4647
}
4748

4849
/// Investment info is fixed at initialization, and is used to control the function of the contract

0 commit comments

Comments
 (0)