samsiegart / simple-game

0 stars 1 forks source link

emerynet demo note #2

Open dckc opened 1 year ago

dckc commented 1 year ago

sort of a note-to-self... to get this running on emerynet, I made this change:

diff --git a/src/App.tsx b/src/App.tsx
index 442fc5b..1aa8f1b 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -19,8 +19,8 @@ import { makeCopyBag } from '@agoric/store';
 type Wallet = Awaited<ReturnType<typeof makeAgoricWalletConnection>>;

 const watcher = makeAgoricChainStorageWatcher(
-  'http://localhost:26657',
-  'agoriclocal'
+  'https://emerynet.rpc.agoric.net:443',
+  'agoric-emerynet-8'
 );

 interface CopyBag {
@@ -72,7 +72,7 @@ const setup = async () => {
 };

 const connectWallet = async () => {
-  await suggestChain('https://local.agoric.net/network-config');
+  await suggestChain('https://emerynet.agoric.net/network-config');
   const wallet = await makeAgoricWalletConnection(watcher);
   useAppStore.setState({ wallet });
   const { pursesNotifier } = wallet;