Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Dec 20, 2024
1 parent 6c69815 commit d1572fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions contracts/near/context-config/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ impl ContextConfigs {
context_id: Repr<ContextId>,
member_id: Repr<ContextIdentity>,
) -> Option<&u64> {
let context = self
.contexts
.get(&context_id)
.expect("context does not exist");
context.member_nonces.get(&member_id)
self.contexts
.get(&context_id)?
.member_nonces
.get(&member_id)
}
}

0 comments on commit d1572fe

Please sign in to comment.