From cca6caf1f86dafb38bef337fa661725a22bf5dbb Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Tue, 17 Sep 2024 10:17:49 +0200 Subject: [PATCH] replica-port --- motoko/icrc2-swap/test/swap/agent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motoko/icrc2-swap/test/swap/agent.ts b/motoko/icrc2-swap/test/swap/agent.ts index f55fcc0c1..25c01bc00 100644 --- a/motoko/icrc2-swap/test/swap/agent.ts +++ b/motoko/icrc2-swap/test/swap/agent.ts @@ -57,9 +57,9 @@ export function createActor( }); } -// Ask dfx where the the replica is running. This is a total hack to work +// Ask dfx where the the webserver is running. This is a total hack to work // around `dfx start --pocketic` launching on a random port each time. -const dfxPort = execSync("dfx info replica-port", { encoding: "utf-8" }); +const dfxPort = execSync("dfx info webserver-port", { encoding: "utf-8" }); export function agent(identity?: Identity) { const a = new HttpAgent({