Skip to content

Crashes on eth_estimateGas #47

Open

Description

@gagarin55

Following code with web3.js causes sputnikvm-dev panic:

const callData = {
    from: "0x0000000000000000000000000000000000000000",
    gasPrice: "0x04a817c800",
    gas: "0x5208",
    to: "0x0000000000000000000000000000000000000000",
    value: "0x0de0b6b3a7640000",
    data: "",
  }
  let gas = web3.eth.estimateGas(callData);

Result:

thread 'http.worker0' panicked at 'arithmetic operation overflow', /home/bill/.cargo/registry/src/github.life-white.uk-1ecc6299db9ec823/etcommon-bigint-0.2.9/src/uint/mod.rs:1184:0
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /checkout/src/libcore/result.rs:906:4

sputnikvm-dev built by cargo run from master branch.

Activity

  1. sorpaas commented on Feb 22, 2018

    @sorpaas
    Contributor

    Turns out this require some refactoring of sputnikvm-stateful, but I'll get it done soon. In the mean time, setting gasPrice and value to zero would fix the issue.

  2. gagarin55 commented on Apr 9, 2018

    @gagarin55
    MemberAuthor

    Still doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions