Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

update #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"main": "src/index.js",
"dependencies": {
"@magic-ext/tezos": "^0.1.9",
"magic-sdk": "1.3.4",
"@magic-ext/tezos": "^14.0.0",
"magic-sdk": "^19.0.0",
"react": "16.12.0",
"react-dom": "16.12.0",
"react-scripts": "3.0.1"
Expand Down
10 changes: 5 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TezosExtension } from "@magic-ext/tezos";
const magic = new Magic("pk_live_C20A087BDF08A859", {
extensions: {
tezos: new TezosExtension({
rpcUrl: "https://tezos-dev.cryptonomic-infra.tech:443/"
rpcUrl: "https://ghostnet.tezos.marigold.dev"
})
}
});
Expand All @@ -34,7 +34,7 @@ export default function App() {
}, [isLoggedIn]);

const login = async () => {
await magic.auth.loginWithMagicLink({ email });
await magic.auth.loginWithEmailOTP({ email });
setIsLoggedIn(true);
};

Expand Down Expand Up @@ -144,7 +144,7 @@ export default function App() {
<h1>Tezos address</h1>
<div className="info">
<a
href={`https://carthagenet.tzstats.com/${publicAddress}`}
href={`https://ghostnet.tzkt.io/${publicAddress}`}
target="_blank"
>
{publicAddress}
Expand All @@ -161,7 +161,7 @@ export default function App() {
</div>
<div className="info">
<a
href={`https://carthagenet.tzstats.com/${transactionOperationGroupID}`}
href={`https://ghostnet.tzkt.io/${transactionOperationGroupID}`}
target="_blank"
>
{transactionOperationGroupID}
Expand Down Expand Up @@ -199,7 +199,7 @@ export default function App() {
<h1>Smart Contract</h1>
<div className="info">
<a
href={`https://carthagenet.tzstats.com/${contractoperationGroupID}`}
href={`https://ghostnet.tzkt.io/${contractoperationGroupID}`}
target="_blank"
>
{contractoperationGroupID}
Expand Down
Loading