Skip to content

Commit 2acbb04

Browse files
Update cadence/contracts/interfaces/DeFiActions.cdc
simplify cap.borrow Co-authored-by: Leo Zhang <zhangchiqing@gmail.com>
1 parent 9c95be4 commit 2acbb04

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cadence/contracts/interfaces/DeFiActions.cdc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,7 @@ access(all) contract DeFiActions {
10781078
}
10791079
if let cap = self._executionCallback {
10801080
if cap.check() {
1081-
if let callback = cap.borrow() {
1082-
callback.onExecuted(balancerUUID: self.uniqueID?.id ?? 0)
1083-
}
1081+
cap.borrow()!.onExecuted(balancerUUID: self.uniqueID?.id ?? 0)
10841082
}
10851083
}
10861084
// clean up internally-managed historical scheduled transactions

0 commit comments

Comments
 (0)