Skip to content

Commit

Permalink
Update get_total_balance.cdc
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS authored and joshuahannan committed Nov 21, 2023
1 parent 0e44d6d commit 2ba8ec1
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions contracts/FlowStakingCollection.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,8 @@ access(all) contract FlowStakingCollection {
access(all) fun doesAccountHaveStakingCollection(address: Address): Bool {
let account = getAccount(address)
return account.capabilities
.get<&StakingCollection>(self.StakingCollectionPublicPath)?
.check() ?? false
.get<&StakingCollection>(self.StakingCollectionPublicPath)
?.check() ?? false
}

/// Creates a brand new empty staking collection resource and returns it to the caller
Expand Down
Loading

0 comments on commit 2ba8ec1

Please sign in to comment.