Skip to content

Commit

Permalink
add borrow delegator for lease and test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Oct 25, 2024
1 parent 1c7b145 commit cc6586a
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 13 deletions.
4 changes: 4 additions & 0 deletions contracts/LockedTokens.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ access(all) contract LockedTokens {
return self.borrowNode()
}

access(RecoverLease) view fun borrowDelegatorForLease(): auth(FlowIDTableStaking.DelegatorOwner) &FlowIDTableStaking.NodeDelegator? {
return self.borrowDelegator()
}

access(UnlockTokens) fun removeNode(): @FlowIDTableStaking.NodeStaker? {
let node <- self.nodeStaker <- nil

Expand Down
Loading

0 comments on commit cc6586a

Please sign in to comment.