Skip to content
Merged
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
7 changes: 3 additions & 4 deletions examples/solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
},
"dependencies": {
"@chain-registry/v2": "^1.71.237",
"@interchain-kit/core": "0.3.43",
"@interchain-kit/phantom-extension": "0.3.43",
"@interchain-kit/react": "0.3.43",
"@interchain-kit/phantom-extension": "0.3.46",
"@interchain-kit/react": "0.3.46",
"@interchain-ui/react": "1.26.3",
"@interchainjs/solana": "1.16.1",
"@interchainjs/solana": "1.17.3",
"chain-registry": "2.0.31",
"next": "15.3.5",
"react": "^19.0.0",
Expand Down
19 changes: 11 additions & 8 deletions examples/solana/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@interchainjs/solana';
import { useChain, useWalletManager } from '@interchain-kit/react';

type StatusContent = ReactNode;
type StatusContent = string | ReactNode;

export default function Home() {
const [client, setClient] = useState<PhantomSigningClient | null>(null);
Expand Down Expand Up @@ -57,19 +57,22 @@ export default function Home() {
setLoading(true);
setStatus('Connecting to Phantom wallet...');

// console.log('wallet 2', wallet)
const provider = await wallet.getProvider()
// console.log('provider', provider)
// setClient(provider)

const newClient = await PhantomSigningClient.connectWithPhantom(
DEVNET_ENDPOINT,
{
commitment: 'confirmed',
broadcast: { checkTx: true, timeout: 60000 }
}
broadcast: { checkTx: true, timeout: 60000 },
provider
},
);

setClient(newClient); // original
// console.log('wallet 2', wallet)
// const provider = await wallet.getProvider()
// console.log('provider', provider)
// setClient(provider)

const walletAddress = newClient.signerAddress.toString();
setWalletAddress(walletAddress);
setRecipient(walletAddress);
Expand Down Expand Up @@ -349,7 +352,7 @@ export default function Home() {
<h2 className="text-lg font-semibold text-gray-700 mb-3">Status</h2>
<div className="bg-gray-50 p-3 rounded min-h-[60px]">
<p className="text-sm text-gray-700">
{loading ? 'Loading...' : status || 'Ready to use'}
{loading ? 'Loading...' : (status ? status : 'Ready to use')}
</p>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion packages/create-interchain-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"build:chmod": "chmod +x ./dist/create-interchain-app.js",
"build": "npm run build:clean && npm run build:dist && npm run build:copy && npm run build:chmod",
"build:win": "npm run build:clean && npm run build:dist && npm run build:copy",
"prepare": "npm run build",
"dev": "node ./dist/create-interchain-app",
"lint": "eslint .",
"format": "eslint --fix .",
Expand Down
Loading
Loading