From fc1ea490a13d8262d042af36a819dffad3846ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Mon, 21 Oct 2024 09:20:49 -0700 Subject: [PATCH] move CLI configuration for Crypto contract into existing file --- .github/workflows/ci.yml | 2 +- contracts/flow.json | 30 ------------------------------ flow.json | 6 ++++++ 3 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 contracts/flow.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed45a24b..5d49337a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,4 @@ jobs: run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" - name: Run Cadence-based tests - run: cd contracts && flow test --cover --covercode="contracts" Crypto_test.cdc + run: flow test --cover --covercode="contracts" contracts/Crypto_test.cdc diff --git a/contracts/flow.json b/contracts/flow.json deleted file mode 100644 index c9a8389a..00000000 --- a/contracts/flow.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "networks": { - "emulator": "127.0.0.1:3569", - "testing": "127.0.0.1:3569", - "mainnet": "access.mainnet.nodes.onflow.org:9000", - "sandboxnet": "access.sandboxnet.nodes.onflow.org:9000", - "testnet": "access.devnet.nodes.onflow.org:9000" - }, - "contracts": { - "Crypto": { - "source": "Crypto.cdc", - "aliases": { - "testing": "0x0000000000000007" - } - } - }, - "deployments": { - "emulator": { - "emulator-account": [ - "Crypto" - ] - } - }, - "accounts": { - "emulator-account": { - "address": "f8d6e0586b0a20c7", - "key": "b775d6da04a0b4819903d89a25395bfd90eb8559182255690c7c141edaeae923" - } - } -} \ No newline at end of file diff --git a/flow.json b/flow.json index dc598c0f..f4bd4cf5 100644 --- a/flow.json +++ b/flow.json @@ -116,6 +116,12 @@ "testnet": "0x7aad92e5a0715d21", "mainnet": "0x62430cf28c26d095" } + }, + "Crypto": { + "source": "./contracts/Crypto.cdc", + "aliases": { + "testing": "0x0000000000000007" + } } }, "networks": {