Skip to content

Commit 32612ea

Browse files
fix: using trilitech/tezos-provider
1 parent 3dd4a3a commit 32612ea

File tree

5 files changed

+2231
-1985
lines changed

5 files changed

+2231
-1985
lines changed

dapps/tezos-provider/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@solana/web3.js": "^1.78.4",
1818
"@taquito/rpc": "^20.0.1",
1919
"@taquito/taquito": "^20.0.1",
20+
"@trili/tezos-provider": "^1.0.2",
2021
"@walletconnect/modal": "^2.6.2",
2122
"@walletconnect/universal-provider": "^2.14.0",
2223
"bs58": "^5.0.0",

dapps/tezos-provider/src/App.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { WalletConnectModal } from "@walletconnect/modal";
22
import { useEffect, useState, useCallback } from "react";
33
import { SAMPLES, SAMPLE_KINDS } from "./utils/samples";
4-
import TezosProvider, {
5-
TezosChainDataMainnet,
6-
TezosChainDataTestnet,
7-
} from "./utils/tezos-provider";
84
import {
5+
TezosProvider,
6+
TezosChainDataTestnet,
97
TezosGetAccountResponse,
108
TezosSendResponse,
119
TezosSignResponse,
12-
} from "./utils/tezos-provider";
10+
} from "@trili/tezos-provider";
1311
import { ErrorObject } from '@walletconnect/utils';
1412

1513
const projectId = import.meta.env.VITE_PROJECT_ID;
@@ -104,7 +102,7 @@ const App = () => {
104102

105103
try {
106104
await provider.connect({
107-
chains: [TezosChainDataTestnet, TezosChainDataMainnet],
105+
chains: [TezosChainDataTestnet],
108106
});
109107
setIsConnected(true);
110108
console.log("Connected to Tezos");

0 commit comments

Comments
 (0)