Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor
Browse files Browse the repository at this point in the history
npty committed Aug 9, 2024
1 parent 04faa34 commit 52a2a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions move/operators/sources/operators.move
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ module operators::operators {
assert!(self.caps.contains(cap_id), ECapNotFound);

LoanedCap<T> {
cap: bag::remove(&mut self.caps, cap_id)
cap: self.caps.remove<ID, T>(cap_id)
}
}

@@ -149,7 +149,7 @@ module operators::operators {
) {
let LoanedCap { cap } = loan_cap;

bag::add(&mut self.caps, cap_id, cap);
self.caps.add(cap_id, cap);
}

/// Removes a capability from the `Operators` struct.

0 comments on commit 52a2a82

Please sign in to comment.