Skip to content

Commit

Permalink
Merge pull request #107 from MinaFoundation/feature/auro-wallet-network
Browse files Browse the repository at this point in the history
Update 'testnet' to 'devnet' [Auro Wallet Integration]
  • Loading branch information
iluxonchik authored Jan 10, 2025
2 parents 5b39fea + be49566 commit d142709
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pgt-web-app",
"version": "0.1.31",
"version": "0.1.32",
"private": true,
"type": "module",
"scripts": {
Expand Down
8 changes: 1 addition & 7 deletions src/contexts/WalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { AuroWallet, WalletContextType, WalletProvider, WalletState, Networ
import { WalletAuthDialog } from '@/components/web3/WalletAuthDialog';

// Define target network - can be toggled between 'mainnet' and 'testnet'
export const TARGET_NETWORK: NetworkID = 'testnet';
export const TARGET_NETWORK: NetworkID = 'devnet';

const initialState: WalletState = {
status: 'disconnected',
Expand All @@ -17,12 +17,6 @@ const initialState: WalletState = {

const WalletContext = createContext<WalletContextType | undefined>(undefined);

interface AccountsChangedEvent extends Event {
detail: {
accounts: string[];
};
}

// Define type for window.mina
declare global {
interface Window {
Expand Down
2 changes: 1 addition & 1 deletion src/types/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type WalletProvider = 'auro' | 'pallard' | 'clorio';

export type NetworkID = 'mainnet' | 'testnet' | 'berkeley';
export type NetworkID = 'mainnet' | 'devnet' | 'berkeley';

// Wallet event types
export type WalletEventType = 'accountsChanged' | 'networkChanged' | 'chainChanged' | 'disconnect' | 'connect';
Expand Down

0 comments on commit d142709

Please sign in to comment.