Skip to content

Commit

Permalink
fix: using trilitech/tezos-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dianasavvatina committed Nov 20, 2024
1 parent 3dd4a3a commit 32612ea
Show file tree
Hide file tree
Showing 5 changed files with 2,231 additions and 1,985 deletions.
1 change: 1 addition & 0 deletions dapps/tezos-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@solana/web3.js": "^1.78.4",
"@taquito/rpc": "^20.0.1",
"@taquito/taquito": "^20.0.1",
"@trili/tezos-provider": "^1.0.2",
"@walletconnect/modal": "^2.6.2",
"@walletconnect/universal-provider": "^2.14.0",
"bs58": "^5.0.0",
Expand Down
10 changes: 4 additions & 6 deletions dapps/tezos-provider/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { WalletConnectModal } from "@walletconnect/modal";
import { useEffect, useState, useCallback } from "react";
import { SAMPLES, SAMPLE_KINDS } from "./utils/samples";
import TezosProvider, {
TezosChainDataMainnet,
TezosChainDataTestnet,
} from "./utils/tezos-provider";
import {
TezosProvider,
TezosChainDataTestnet,
TezosGetAccountResponse,
TezosSendResponse,
TezosSignResponse,
} from "./utils/tezos-provider";
} from "@trili/tezos-provider";
import { ErrorObject } from '@walletconnect/utils';

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

try {
await provider.connect({
chains: [TezosChainDataTestnet, TezosChainDataMainnet],
chains: [TezosChainDataTestnet],
});
setIsConnected(true);
console.log("Connected to Tezos");
Expand Down
Loading

0 comments on commit 32612ea

Please sign in to comment.