Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(contracts): alt & lattice #143

Merged
merged 4 commits into from
Aug 26, 2023
Merged

build(contracts): alt & lattice #143

merged 4 commits into from
Aug 26, 2023

Conversation

aLIEzsss4
Copy link
Collaborator

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

@aLIEzsss4 aLIEzsss4 requested a review from noyyyy August 25, 2023 16:49
@github-actions
Copy link

github-actions bot commented Aug 25, 2023

Deploy preview for vercel-autochessia ready!

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

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

Copy link
Member

@noyyyy noyyyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not contract address problem. It's due to viem like

TransactionExecutionError: An internal error was received.

URL: https://flashlayer.alt.technology/autochessia7806fd60
Request body: {"method":"eth_estimateGas","params":[{"from":"0x5Bf8C4Fb557e1C7F24c74db67E3d940B8c16904c","data":"0x00ac498a310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000","maxFeePerGas":"0x59682f00","maxPriorityFeePerGas":"0x59682f00","nonce":"0x0","to":"0x6eea611D1e9eA24e8Ce2Ad5aD5f1404B5Fe6ab6E"}]}
 
Estimate Gas Arguments:
  from:                  0x5Bf8C4Fb557e1C7F24c74db67E3d940B8c16904c
  to:                    0x6eea611D1e9eA24e8Ce2Ad5aD5f1404B5Fe6ab6E
  data:                  0x00ac498a310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000
  maxFeePerGas:          1.5 gwei
  maxPriorityFeePerGas:  1.5 gwei
  nonce:                 0
 
Request Arguments:
  from:   0x5Bf8C4Fb557e1C7F24c74db67E3d940B8c16904c
  to:     0x6eea611D1e9eA24e8Ce2Ad5aD5f1404B5Fe6ab6E
  data:   0x00ac498a310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000
  nonce:  0

Details: gas required exceeds allowance 0
Version: [email protected]

packages/client/src/App.tsx Show resolved Hide resolved
packages/contracts/worlds.json Show resolved Hide resolved
@noyyyy
Copy link
Member

noyyyy commented Aug 25, 2023

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);

@aLIEzsss4 aLIEzsss4 requested a review from noyyyy August 26, 2023 05:55
Copy link
Member

@noyyyy noyyyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@noyyyy noyyyy added this pull request to the merge queue Aug 26, 2023
Merged via the queue into develop with commit 9e6d273 Aug 26, 2023
1 check passed
@noyyyy noyyyy deleted the build-latticeTestnet branch August 26, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants