Closed b-l-u-e closed 1 month ago
@jdevcs @Muhammad-Altabba can you help ? This is for the EthSafari Hackathon
Hi @b-l-u-e,
Thanks for the issue.
Please refer to the documentation for the correct way to call the methods. I noticed that you are passing web
to the ContractFactory
instead of an instance of ZKsyncWallet
. There might be another issue with the code as well. But I could notice this one fast. I hope it will fix your issue. And if not, try checking the other code accordingly to the documentation.
Please check: https://chainsafe.github.io/web3-plugin-zksync/classes/ContractFactory.html
And in both cases, we will try to improve the docs and the types for such a case.
Thank you.. let me work on it and get back to you
Hi @b-l-u-e , Could you please close this issue if it was resolved. And you can open a new issue if you are facing some other error or so. All the best,
Hello, Thank you for your prompt response. Closed the issue.With regards,Winnie Fredrick.On 12 Sep 2024, at 09:45, Muhammad Altabba @.***> wrote: Hi @b-l-u-e , Could you please close this issue if it was resolved. And you can open a new issue if you are facing some other error or so. All the best,
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I'm encountering an issue when trying to deploy a smart contract using web3-plugin-zksync on zkSync along with Hardhat. The error message I receive states:
Error: The bytecode length in bytes must be divisible by 32!
I've confirmed that the bytecode is correctly retrieved from Hardhat, but for some reason, it's not being deployed successfully due to this error.
Setup:
Steps to Reproduce:
Code Example:
In Contracts.jsx (where I am deploying the contract from the frontend):
In server.js: