Skip to content

Commit

Permalink
fix FTVaultFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkline committed May 7, 2024
1 parent 2671d5d commit b646f85
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions contracts/factories/FTVaultFactory.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ access(all) contract FTVaultFactory {
}

access(all) view fun getPublicCapability(acct: &Account, path: PublicPath): Capability? {
if let cap = acct.capabilities.get<&{FungibleToken.Vault}>(path) {
if !cap.check() {
return nil
}

return cap
let cap = acct.capabilities.get<&{FungibleToken.Vault}>(path)
if !cap.check() {
return nil
}

return cap

return nil
}
}
}

0 comments on commit b646f85

Please sign in to comment.