diff --git a/lib/gateway.ts b/lib/gateway.ts index ed232eb..9dc59b8 100644 --- a/lib/gateway.ts +++ b/lib/gateway.ts @@ -31,7 +31,9 @@ export const handleReplacements = (html: string, opts: DevOptions): string => { replacement: true ? `` + ${renderAttribute("rpc", `http://127.0.0.1:${opts.port}/api/proxy-rpc`)} + ${renderAttribute("network", opts.network)} + >` : "", } })); diff --git a/package.json b/package.json index 793cd66..8a9ca34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bos-workspace", - "version": "1.0.0-alpha.20", + "version": "1.0.0-alpha.21", "description": "", "bin": { "bos-workspace": "./bin/bw.js", diff --git a/tests/unit/gateway.ts b/tests/unit/gateway.ts index 008c94a..0c90d02 100644 --- a/tests/unit/gateway.ts +++ b/tests/unit/gateway.ts @@ -1,6 +1,6 @@ import { DevOptions } from '@/lib/dev'; -import { Logger, LogLevel } from "@/lib/logger"; import { handleReplacements } from '@/lib/gateway'; +import { Logger, LogLevel } from "@/lib/logger"; import { Network } from '@/lib/types'; const unmockedLog = global.log; @@ -41,7 +41,7 @@ describe("gateway", () => { // Test replacement of the near-social-viewer component with an RPC attribute it("should replace with near-social-viewer having an RPC attribute", () => { const htmlInput = ""; - const expectedHtmlOutput = ``; + const expectedHtmlOutput = ``; const result = handleReplacements(htmlInput, mockOpts); expect(result).toBe(expectedHtmlOutput);