Open turbowizardry opened 1 year ago
@turbowizardry thanks! Seeing the same thing on my end and we'll start looking into what's going on
@turbowizardry the cross-chain tutorial has been updated and should now work correctly. Can you please try again and let us know if it works for you? https://v2-docs.zksync.io/dev/tutorials/cross-chain-tutorial.html
Describe the issue When making a call to a contract on L1 that invokes the requestL2Transaction function of IZKSync, the value of ETH specified in param _l2Value of requestL2Transaction does not seem to be passed to the L2 contract function. The ETH value gets stuck in the ZKSync contract, and never makes it to the L2 contract.
Expected behavior The ETH value passed in requestL2Transaction should be passed to the called L2 contract function.
Minimal Reproducible Example Code I have included a cloned repo of the zkSync Governance example here: https://github.com/turbowizardry/zksync-l1-l2-payable-issue
The Governance.sol contract:
The Counter.sol contract:
To Reproduce
yarn ts-node ./scripts/increment-counter.ts
to execute on the contracts I've already deployed.