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

AssertionError when deploying on eravm network. #180

Open
pattool opened this issue Jan 14, 2025 · 2 comments
Open

AssertionError when deploying on eravm network. #180

pattool opened this issue Jan 14, 2025 · 2 comments
Labels

Comments

@pattool
Copy link

pattool commented Jan 14, 2025

When deploying the contract on the network eravm it launch Anvil-ZKsync follow by half of a page of file issues ending with an AssertionError.
See below:

mox run deploy --network eravm
Running run command...

testing
16:59:12  INFO Version:        0.2.1
16:59:12  INFO Repository:     https://github.com/matter-labs/anvil-zksync
....
16:59:12  INFO ========================================
16:59:12  INFO   Listening on 127.0.0.1:62769
16:59:12  INFO ========================================

Traceback (most recent call last):
  File "/Users/myname/.local/bin/mox", line 8, in <module>
    sys.exit(main())
Follow by half of a page of File issus 
.....
File "/Users/myname/.local/share/uv/tools/moccasin/lib/python3.11/site-packages/boa_zksync/environment.py", line 306, in _hash_code
    assert bytecode_len % 32 == 0, "Bytecode length must be a multiple of 32 bytes"
           ^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Bytecode length must be a multiple of 32 bytes

My Setup:

Mac mini 2018, mac OS Sequoia 15.2
Processor: 3,2 GHz 6-Core Intel Core i7
IDE: jupyterlab 4.3.4

@Patricks-Mac-mini mox-favorites-cu % mox --version
Moccasin CLI v0.3.6

@Patricks-Mac-mini mox-favorites-cu % zkvyper --version
Vyper compiler for ZKsync v1.5.4 (LLVM build 
f9f732c8ebdb88fb8cd4528482a00e4f65bcb8b7)
Note: I had first v1.5.7 installed, on demand off our dear friend s3bc40 I installed today v 1.5.4 --> same issue

@Patricks-Mac-mini mox-favorites-cu % anvil-zksync --version
anvil-zksync 0.2.1

@Patricks-Mac-mini mox-favorites-cu % echo $SHELL
/bin/zsh
@s3bc40
Copy link
Contributor

s3bc40 commented Jan 15, 2025

Link to discussion prior to the issue for further info in moccasin-full-course-cu: Cyfrin/moccasin-full-course-cu#32

@PatrickAlphaC
Copy link
Member

I'm not sure what to do here other than "I sort of want to try it on your machine" :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants