Skip to content

Commit cec275b

Browse files
committed
fix access
1 parent ec2e960 commit cec275b

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

cadence/transactions/tidal-yield/admin/grant_beta.cdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "TidalYieldClosedBeta"
55
transaction() {
66

77
prepare(
8-
admin: auth(Capabilities) &Account,
8+
admin: auth(BorrowValue) &Account,
99
user: auth(Storage, Capabilities) &Account
1010
) {
1111
let handle = admin.storage.borrow<auth(TidalYieldClosedBeta.Admin) &TidalYieldClosedBeta.AdminHandle>(
@@ -19,7 +19,7 @@ transaction() {
1919

2020
if let t = user.storage.type(at: p) {
2121
if t == Type<Capability<auth(TidalYieldClosedBeta.Beta) &TidalYieldClosedBeta.BetaBadge>>() {
22-
let _ = user.storage.load<Capability<&TidalYieldClosedBeta.BetaBadge>>(from: p)
22+
let _ = user.storage.load<Capability<auth(TidalYieldClosedBeta.Beta) &TidalYieldClosedBeta.BetaBadge>>(from: p)
2323
} else {
2424
panic("Unexpected type at UserBetaCapStoragePath: ".concat(t.identifier))
2525
}

cadence/transactions/tidal-yield/create_tide.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ transaction(strategyIdentifier: String, vaultIdentifier: String, amount: UFix64)
2121

2222
prepare(signer: auth(BorrowValue, SaveValue, StorageCapabilities, PublishCapability, CopyValue) &Account) {
2323
let betaCap = signer.storage.copy<Capability<auth(TidalYieldClosedBeta.Beta) &TidalYieldClosedBeta.BetaBadge>>(from: TidalYieldClosedBeta.UserBetaCapStoragePath)
24-
?? panic("Signer doesn not have a BetaBadge stored at path \(TidalYieldClosedBeta.UserBetaCapStoragePath) - configure and retry")
24+
?? panic("Signer does not have a BetaBadge stored at path \(TidalYieldClosedBeta.UserBetaCapStoragePath) - configure and retry")
2525

2626
self.betaRef = betaCap.borrow()
2727
?? panic("Capability does not contain correct reference")

cadence/transactions/tidal-yield/deposit_to_tide.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ transaction(id: UInt64, amount: UFix64) {
1717

1818
prepare(signer: auth(BorrowValue, CopyValue) &Account) {
1919
let betaCap = signer.storage.copy<Capability<auth(TidalYieldClosedBeta.Beta) &TidalYieldClosedBeta.BetaBadge>>(from: TidalYieldClosedBeta.UserBetaCapStoragePath)
20-
?? panic("Signer doesn not have a BetaBadge stored at path \(TidalYieldClosedBeta.UserBetaCapStoragePath) - configure and retry")
20+
?? panic("Signer does not have a BetaBadge stored at path \(TidalYieldClosedBeta.UserBetaCapStoragePath) - configure and retry")
2121

2222
self.betaRef = betaCap.borrow()
2323
?? panic("Capability does not contain correct reference")

cadence/transactions/tidal-yield/setup.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "TidalYield"
99
transaction {
1010
prepare(signer: auth(BorrowValue, SaveValue, StorageCapabilities, PublishCapability) &Account) {
1111
let betaCap = signer.storage.copy<Capability<auth(TidalYieldClosedBeta.Beta) &TidalYieldClosedBeta.BetaBadge>>(from: TidalYieldClosedBeta.UserBetaCapStoragePath)
12-
?? panic("Signer doesn not have a BetaBadge stored at path \(TidalYieldClosedBeta.UserBetaCapStoragePath) - configure and retry")
12+
?? panic("Signer does not have a BetaBadge stored at path \(TidalYieldClosedBeta.UserBetaCapStoragePath) - configure and retry")
1313

1414
let betaRef = betaCap.borrow()
1515
?? panic("Capability does not contain correct reference")

0 commit comments

Comments
 (0)