From 0f454e146cc089e74c88b0262411e429b4afa324 Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Thu, 22 Jul 2021 17:06:41 +0300 Subject: [PATCH] Add testnet option to demo.ts --- intro/4-ipfs-code-execution/aqua/src/demo.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intro/4-ipfs-code-execution/aqua/src/demo.ts b/intro/4-ipfs-code-execution/aqua/src/demo.ts index 184d43e..fe883bf 100644 --- a/intro/4-ipfs-code-execution/aqua/src/demo.ts +++ b/intro/4-ipfs-code-execution/aqua/src/demo.ts @@ -92,6 +92,9 @@ if (args.length >= 1 && args[0] == "testnet") { } else if (args[0] == "krasnodar") { environment = krasnodar; console.log("📘 Will connect to krasnodar"); +} else if (args[0] == "testnet") { + environment = testNet; + console.log("📘 Will connect to testNet"); } else { throw "Specify environment"; }