HelheimLabs / autochessia

Fully on-chain auto chess, built with MUD
https://dev.autochessia.xyz
GNU Affero General Public License v3.0
21 stars 14 forks source link

build(contracts): alt & lattice #143

Closed aLIEzsss4 closed 1 year ago

aLIEzsss4 commented 1 year ago

The alt network cannot function properly because requesting a gaslimit of 0 results in errors, but lattice works. The .env needs to be modified with VITE_CHAIN_ID=4242

@noyyyy

github-actions[bot] commented 1 year ago

Deploy preview for vercel-autochessia ready!

✅ Preview https://vercel-autochessia-nac7j2x1w-aliez.vercel.app

Built with commit 29fb944a2b91193bab0858c3dc368ee9ec6c77c4. This pull request is being automatically deployed with vercel-action

noyyyy commented 1 year ago

The alt network cannot function properly because requesting a gaslimit of 0 results in errors, but lattice works. The .env needs to be modified with VITE_CHAIN_ID=4242

@noyyyy

It's better to switch like

  const chainId = Number(params.get("chainId") || latticeTestnet.id);