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

Zksync era bug #2170

Open
iandareen opened this issue Jun 6, 2024 · 0 comments
Open

Zksync era bug #2170

iandareen opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@iandareen
Copy link

The function addPKCommittee in my smart contract encounters an error when attempting to add a point on the BabyJub curve on ZKSync Era Sepolia and inmemory local environments. The function works as expected on Layer 1, Layer 2 Arbitrum Sepolia testnet environments.

🔄 Reproduction Steps
Deploy contract DKG to ZKSync Era inmemory testnet environment.
Call the addPKCommittee function with a valid BabyJubPoint[] argument.
Observe the transaction failing with a revert error.
🤔 Expected Behavior
The addPKCommittee function should successfully add the point to the PK_COMMITTEE variable on the BabyJub curve and the transaction should complete without reverting.

😯 Current Behavior
The transaction reverts with an error message indicating "require(false) occurred". There seems to be an error with the precompile contract 0x05 or mstore or mload in the expmod function of the CurveBabyJubJub library.

🖥️ Environment
Operating System: ubuntu 22.04.3
Solidity Version: 0.8.17
Smart Contract Name: DKG

📋 Additional Context
The provided BabyJub library source code seems to be functional on Layer 1 and Arbitrum Sepolia.
Link to source contract: https://github.com/duongnd-183902/DKG-zkSync.git

📎 Log Output
Error: execution reverted (no data present; likely require(false) occurred (action="estimateGas", data="0x...", reason="require(false)", transaction={...}, invocation=null, revert=null, code=CALL_EXCEPTION, version=6.11.1)

@iandareen iandareen added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant