From 0c8ef753fa27209de7d16da2c191e37399126e22 Mon Sep 17 00:00:00 2001 From: Austin Kline Date: Mon, 22 Apr 2024 11:27:42 -0700 Subject: [PATCH] remove incorrect entitlement usage --- contracts/HybridCustody.cdc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/HybridCustody.cdc b/contracts/HybridCustody.cdc index 6383fa5..0de05c9 100644 --- a/contracts/HybridCustody.cdc +++ b/contracts/HybridCustody.cdc @@ -1100,9 +1100,9 @@ access(all) contract HybridCustody { /// Retrieves a reference to the ChildAccount associated with the given parent account if one exists. /// - access(Owner) fun borrowChildAccount(parent: Address): auth(Capabilities) &ChildAccount? { + access(Owner) fun borrowChildAccount(parent: Address): auth(Child) &ChildAccount? { let identifier = HybridCustody.getChildAccountIdentifier(parent) - return self.borrowAccount().storage.borrow(from: StoragePath(identifier: identifier)!) + return self.borrowAccount().storage.borrow(from: StoragePath(identifier: identifier)!) } /// Sets the CapabilityFactory Manager for the specified parent in the associated ChildAccount.