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

Crashes on eth_estimateGas #47

Open
gagarin55 opened this issue Feb 13, 2018 · 2 comments
Open

Crashes on eth_estimateGas #47

gagarin55 opened this issue Feb 13, 2018 · 2 comments
Labels

Comments

@gagarin55
Copy link
Member

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.com-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.

@sorpaas
Copy link
Contributor

sorpaas commented Feb 22, 2018

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.

@gagarin55
Copy link
Member Author

Still doesn't work

@gagarin55 gagarin55 added the bug label Apr 9, 2018
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

2 participants