From 16a2c1c82d22aeaa3c5d4b8ff8b6d37b222b26cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Vi=C3=A9not?= Date: Tue, 19 Sep 2023 15:19:24 +0200 Subject: [PATCH] Add a couple traces to repository module. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon ViƩnot --- hedera-patch/h5ai-nginx.patch | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hedera-patch/h5ai-nginx.patch b/hedera-patch/h5ai-nginx.patch index 631a3942..bd68de32 100644 --- a/hedera-patch/h5ai-nginx.patch +++ b/hedera-patch/h5ai-nginx.patch @@ -1,4 +1,4 @@ -Subject: [PATCH] h5ai-nginx patch +Subject: [PATCH] h5ai-patch --- Index: select-contract-form/src/App.js IDEA additional info: @@ -7,7 +7,7 @@ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP =================================================================== diff --git a/select-contract-form/src/App.js b/select-contract-form/src/App.js --- a/select-contract-form/src/App.js (revision 453a6681ef93a7a43ee339b5301743e27d7a3b62) -+++ b/select-contract-form/src/App.js (date 1693490213100) ++++ b/select-contract-form/src/App.js (date 1695128631061) @@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from "react"; import { Alert, Button, Card, Form, Spinner } from "react-bootstrap"; @@ -16,12 +16,13 @@ diff --git a/select-contract-form/src/App.js b/select-contract-form/src/App.js function App() { const [selectedMatch, setSelectedMatch] = useState("full_match"); -@@ -20,10 +21,14 @@ +@@ -20,10 +21,17 @@ ]; useEffect(() => { + const getConfig = async () => { + const configUrl = `${window.location.origin}/select-contract/config.json` ++ console.log(`Trying to read config from: ${configUrl}`) + const response = await axios.get(configUrl) + return JSON.parse(JSON.stringify(response.data)) + } @@ -31,6 +32,8 @@ diff --git a/select-contract-form/src/App.js b/select-contract-form/src/App.js - : "https://sourcify.dev/server" + const config = await (await getConfig()) + const serverUrl = config.SERVER_URL ++ console.log(`Using SERVER_URL: ${serverUrl}`) ++ console.log(`Trying to retrieve supported chains from: ${serverUrl}/chains`) const chainsArray = await ( await fetch(`${serverUrl}/chains`) ).json(); @@ -41,7 +44,7 @@ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP =================================================================== diff --git a/select-contract-form/package.json b/select-contract-form/package.json --- a/select-contract-form/package.json (revision 453a6681ef93a7a43ee339b5301743e27d7a3b62) -+++ b/select-contract-form/package.json (date 1693489764150) ++++ b/select-contract-form/package.json (date 1695128714796) @@ -6,6 +6,7 @@ "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", @@ -57,8 +60,8 @@ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP =================================================================== diff --git a/select-contract-form/public/config.json b/select-contract-form/public/config.json new file mode 100644 ---- /dev/null (date 1693489764154) -+++ b/select-contract-form/public/config.json (date 1693489764154) +--- /dev/null (date 1695128714796) ++++ b/select-contract-form/public/config.json (date 1695128714796) @@ -0,0 +1,3 @@ + { + "SERVER_URL": "https://sourcify.dev/server"