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 committed Sep 26, 2023
1 parent 54fc44b commit fdc1be6
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 fdc1be6

Please sign in to comment.