diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 957eb53..5b78929 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -20,7 +20,7 @@ jobs: with: go-version: 1.18 - name: Install Flow CLI - run: bash -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.3.4 + run: bash -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.4.4 - name: Run tests run: sh ./test.sh - name: Normalize coverage report filepaths diff --git a/contracts/HybridCustody.cdc b/contracts/HybridCustody.cdc index 5d526e2..139de49 100644 --- a/contracts/HybridCustody.cdc +++ b/contracts/HybridCustody.cdc @@ -1037,7 +1037,10 @@ pub contract HybridCustody { // NOTE: This path cannot be sufficiently randomly generated, an app calling this function could build a // capability to this path before it is made, thus maintaining ownership despite making it look like they // gave it away. Until capability controllers, this method should not be fully trusted. - let authAcctPath = "HybridCustodyRelinquished".concat(HybridCustody.account.address.toString()).concat(getCurrentBlock().height.toString()) + let authAcctPath = "HybridCustodyRelinquished_" + .concat(HybridCustody.account.address.toString()) + .concat(getCurrentBlock().height.toString()) + .concat(unsafeRandom().toString()) // ensure that the path is different from the previous one let acctCap = acct.linkAccount(PrivatePath(identifier: authAcctPath)!)! self.acct = acctCap