Skip to content

Commit

Permalink
include all cadence contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkline committed Sep 29, 2023
1 parent eb321ea commit 0ccff22
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/hybrid-custody/factories/FTAllFactory.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "FungibleToken"
pub contract FTAllFactory {
pub struct Factory: CapabilityFactory.Factory {
pub fun getCapability(acct: &AuthAccount, path: CapabilityPath): Capability {
return acct.getCapability<&{FungibleToken.Provider, FungibleToken.Receiver, FungibleToken.Balance}>(path)
return acct.getCapability<&{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>(path)
}
}
}
10 changes: 10 additions & 0 deletions contracts/hybrid-custody/factories/FTReceiverBalanceFactory.cdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "CapabilityFactory"
import "FungibleToken"

pub contract FTReceiverBalanceFactory {
pub struct Factory: CapabilityFactory.Factory {
pub fun getCapability(acct: &AuthAccount, path: CapabilityPath): Capability {
return acct.getCapability<&{FungibleToken.Receiver, FungibleToken.Balance}>(path)
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flowtyio/flow-contracts",
"version": "0.0.8",
"version": "0.0.10",
"main": "index.json",
"description": "An NPM package for common flow contracts",
"author": "flowtyio",
Expand Down Expand Up @@ -28,7 +28,7 @@
"files": [
"*.js",
"index.json",
"contracts/*.cdc",
"contracts/**/*.cdc",
"flow.json",
"README.md",
"LICENSE"
Expand Down

0 comments on commit 0ccff22

Please sign in to comment.