diff --git a/README.md b/README.md index cc062af..38c1d86 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This will create a new Nillion app in the your desired directory. 1. Installs `nilup`, the Nillion SDK tool installer and version manager 2. Clones an example Next.js project with App Router Settings - a. Installs `@nillion/client-react-hooks` which has all your needs to use Nillion and Nada. + a. Installs `@nillion/client-react-hooks` \* `@nillion/client-vms` which has all your needs to use Nillion and Nada. 3. Installs an Nada projects with a pyenv 4. Then follow along the QuickStart [guide](https://docs.nillion.com/quickstart-install) to do the following: - Create a simple Nada App diff --git a/examples/nextjs/app/components/LoginButton.tsx b/examples/nextjs/app/components/LoginButton.tsx index 8fc7df8..ac365c5 100644 --- a/examples/nextjs/app/components/LoginButton.tsx +++ b/examples/nextjs/app/components/LoginButton.tsx @@ -18,7 +18,7 @@ export const LoginButton: FC = ({ const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); - const NETWORK: NetworkType = "testnet"; // devnet or testnet <-- Change here. + const NETWORK: NetworkType = "devnet"; // devnet or testnet <-- Change here. const isTestnet = (network: NetworkType): network is "testnet" => network === "testnet"; const chainId = "nillion-chain-testnet-1"; @@ -29,18 +29,18 @@ export const LoginButton: FC = ({ try { // For DEVNET - // const client = await createClient({ - // network: NETWORK, - // }); - - // Uncomment the following line to use TESTNET + Keplr wallet const client = await createClient({ network: NETWORK, - seed: "example-user-seed", - //@ts-expect-error window keplr types - keplr: window.keplr, }); + // Uncomment the following line to use TESTNET + Keplr wallet + // const client = await createClient({ + // network: NETWORK, + // seed: "example-user-seed", + // //@ts-expect-error window keplr types + // keplr: window.keplr, + // }); + onClientCreated(client); if (isTestnet(NETWORK)) { @@ -104,7 +104,7 @@ export const LoginButton: FC = ({ Connecting... ) : isConnected ? ( - walletAddress && NETWORK === "testnet" ? ( + walletAddress && isTestnet(NETWORK) ? ( `${walletAddress?.substring(0, 11)}...${walletAddress?.substring(walletAddress.length - 3)}` ) : ( "Logout" diff --git a/package.json b/package.json index 9c56ecc..a75782d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nillion/create-nillion-app", - "version": "0.2.0-rc.1", + "version": "0.2.0-rc.3", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "type": "module",