Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Revert reason: 'execution reverted'. #45

@liu-a111

Description

@liu-a111

🐛 Bug Report for zksync2-java Java SDK

📝 Description

Hello, Sir. I have deployed a Contract to the era_node_test network. Using zysync2-java, I am able to call view methods within the Contract, but I am unable to invoke methods that consume gas.

🖥️ Environment

  • Operating System & Version: [e.g., Ubuntu 22.04]
  • Other relevant environment details: zksync-java0.3.0

📋 Additional Context

`
17:28:02.420 [main] DEBUG org.web3j.protocol.http.HttpService - {"jsonrpc":"2.0","error":{"code":3,"message":"execution reverted","data":"0x"},"id":9}

17:28:02.420 [main] DEBUG org.web3j.protocol.http.HttpService - <-- END HTTP (87-byte body)
Exception in thread "main" org.web3j.protocol.exceptions.TransactionException: Transaction 0x4f22aee9d0e477914df3b4ab81a2b963c739d27e289df805fbf5bb7e2d3453ed has failed with status: 0x0. Gas used: 130610. Revert reason: 'execution reverted'.
at org.web3j.tx.Contract.executeTransaction(Contract.java:435)
at org.web3j.tx.Contract.executeTransaction(Contract.java:374)
at org.web3j.tx.Contract.executeTransaction(Contract.java:368)
at org.web3j.tx.Contract.executeTransaction(Contract.java:363)
at org.web3j.tx.Contract.lambda$executeRemoteCallTransaction$3(Contract.java:468)
at org.web3j.protocol.core.RemoteCall.send(RemoteCall.java:42)
at Main.main(Main.java:61)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions