Skip to content

Commit

Permalink
update get_specific_vault_paths.cdc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Sep 15, 2023
1 parent c985b66 commit 8919150
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/hybrid-custody/get_specific_vault_paths.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct FTVaultPaths {

/* --- Helper Methods --- */
//
/// Returns a type identifier for an NFT Collection
/// Returns a type identifier for an FungibleToken Vault
///
access(all) fun deriveVaultTypeIdentifier(_ contractAddress: Address, _ contractName: String): String {
return "A.".concat(withoutPrefix(contractAddress.toString())).concat(".").concat(contractName).concat(".Vault")
Expand All @@ -46,6 +46,8 @@ access(all) fun withoutPrefix(_ input: String): String{
return address
}

/* --- Main Script --- */
//
/// Returns the paths for a given vault in the specified account address
///
pub fun main(address: Address, ftAddress: Address, ftName: String): FTVaultPaths? {
Expand Down Expand Up @@ -99,4 +101,4 @@ pub fun main(address: Address, ftAddress: Address, ftName: String): FTVaultPaths
providerPath: providerPath,
receiverPath: receiverPath
)
}
}

0 comments on commit 8919150

Please sign in to comment.