From e539804c2248fd106094254a6ea1b79086d6ccdc Mon Sep 17 00:00:00 2001 From: Victor Kirov Date: Thu, 9 Nov 2023 13:39:51 +0200 Subject: [PATCH] Allow inscriptions on Testnet (#14) * Allow inscriptions on Testnet * Update to correct sats-connect version --- package-lock.json | 14 +++++++------- package.json | 2 +- src/components/createFileInscription.tsx | 9 --------- src/components/createTextInscription.tsx | 9 --------- 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4e753ab..d8f6921 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", - "sats-connect": "^1.1.1", + "sats-connect": "1.1.2", "typescript": "^4.9.5" } }, @@ -14712,9 +14712,9 @@ } }, "node_modules/sats-connect": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.1.1.tgz", - "integrity": "sha512-cckwlFc0gnYNZsNUsH9xACcpIeD+XdbSvtYhkGZSRqNeqzbqgdVI50mD4mzxs1ILbUGLjdTCINohVP6WbbvhcA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.1.2.tgz", + "integrity": "sha512-nJmCV69WgMNGH9H2cTTH/HsO9wEYS7g0AvnCNNgY5fezEJmA6jNpRMP4Xidv/c0xWL1uGOUHPLJEEOSG4NoneQ==", "dependencies": { "jsontokens": "^4.0.1", "process": "^0.11.10", @@ -27524,9 +27524,9 @@ } }, "sats-connect": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.1.1.tgz", - "integrity": "sha512-cckwlFc0gnYNZsNUsH9xACcpIeD+XdbSvtYhkGZSRqNeqzbqgdVI50mD4mzxs1ILbUGLjdTCINohVP6WbbvhcA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.1.2.tgz", + "integrity": "sha512-nJmCV69WgMNGH9H2cTTH/HsO9wEYS7g0AvnCNNgY5fezEJmA6jNpRMP4Xidv/c0xWL1uGOUHPLJEEOSG4NoneQ==", "requires": { "jsontokens": "^4.0.1", "process": "^0.11.10", diff --git a/package.json b/package.json index 67543e4..2e4457d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", - "sats-connect": "^1.1.1", + "sats-connect": "1.1.2", "typescript": "^4.9.5" }, "scripts": { diff --git a/src/components/createFileInscription.tsx b/src/components/createFileInscription.tsx index 3cac8da..9df4ef4 100644 --- a/src/components/createFileInscription.tsx +++ b/src/components/createFileInscription.tsx @@ -55,15 +55,6 @@ const CreateBinaryInscription = ({ network, capabilities }: Props) => { reader.readAsDataURL(selectedFile); }; - if (network !== BitcoinNetworkType.Mainnet) { - return ( -
-

Create file inscription

- This is only available in Mainnet -
- ); - } - if (!capabilities.has("createInscription")) { return (
diff --git a/src/components/createTextInscription.tsx b/src/components/createTextInscription.tsx index 1b80e53..a481d35 100644 --- a/src/components/createTextInscription.tsx +++ b/src/components/createTextInscription.tsx @@ -69,15 +69,6 @@ const CreateTextInscription = ({ network, capabilities }: Props) => { } }; - if (network !== BitcoinNetworkType.Mainnet) { - return ( -
-

Create text inscription

- This is only available in Mainnet -
- ); - } - if (!capabilities.has("createInscription")) { return (