Giter Site home page Giter Site logo

zksync2-java's People

Contributors

danijeltxfusion avatar highrisk911 avatar kopestinskij avatar maximalien avatar maximfischuk avatar oursy avatar petartxfusion avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zksync2-java's Issues

zks_estimateFee : Failed to submit transaction: virtual machine entered unexpected state. please contact developers and provide transaction details that caused this error

Transaction estimate = Transaction.createFunctionCallTransaction(
"MY SOURCE ADDR",
"TARGET ADDR",
BigInteger.ZERO,
BigInteger.ZERO,
amountInWei,
"0x"
);
Fee fee = zksync.zksEstimateFee(estimate).send().getResult();

Request Log:
{"jsonrpc":"2.0","method":"zks_estimateFee","params":[{"from":"SOURCE ADDR","to":"RECIPIENT ADDR","gas":"0x0","gasPrice":"0x0","value":"0x33ba3e2bee000","data":"0x","transactionType":"0x71","eip712Meta":{"gasPerPubdata":"0x27100"}}],"id":1}

Response Log :
{"jsonrpc":"2.0","error":{"code":3,"message":"Failed to submit transaction: virtual machine entered unexpected state. please contact developers and provide transaction details that caused this error. Error description: Assertion error: EIP1559 params wrong","data":{"code":104,"message":"virtual machine entered unexpected state. please contact developers and provide transaction details that caused this error. Error description: Assertion error: EIP1559 params wrong"}},"id":1}

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Missing package.json file.

A package.json file at the root of your project is required to release on npm.

Please follow the npm guideline to create a valid package.json file.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Validate RPC errors and provide some information from SDK

🌟 Feature Request

Expand the protocol for interaction with the wallet. To be able to handle errors
Now, if you send invalid data, the SDK crashes

πŸ“ Description

At the moment it is difficult to understand why the error occurred. For example, if I make a transaction for an amount greater than the balance, I receive the following error:
image

πŸ–ΌοΈ Mockups/Examples

image
Where sendAmount exceeds wallet balance

deposit eth error

Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:459)
at org.web3j.abi.datatypes.DynamicArray.getTypeAsString(DynamicArray.java:69)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.web3j.abi.FunctionEncoder.buildMethodSignature(FunctionEncoder.java:83)
at io.zksync.abi.ZkFunctionEncoder.encodeFunction(ZkFunctionEncoder.java:33)
at org.web3j.abi.FunctionEncoder.encode(FunctionEncoder.java:46)
at org.web3j.tx.Contract.executeTransaction(Contract.java:344)
at org.web3j.tx.Contract.lambda$executeRemoteCallTransaction$4(Contract.java:415)
at org.web3j.protocol.core.RemoteCall.send(RemoteCall.java:42)
at org.web3j.utils.Async.lambda$run$1(Async.java:38)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.