Skip to content

Commit

Permalink
Add a couple traces to repository module.
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Viénot <[email protected]>
  • Loading branch information
svienot committed Sep 19, 2023
1 parent dcb80b9 commit 16a2c1c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions hedera-patch/h5ai-nginx.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Subject: [PATCH] h5ai-nginx patch
Subject: [PATCH] h5ai-patch
---
Index: select-contract-form/src/App.js
IDEA additional info:
Expand All @@ -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";
Expand All @@ -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))
+ }
Expand All @@ -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();
Expand All @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit 16a2c1c

Please sign in to comment.