Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

JSON-RPC Api different behavior with Geth, which is correct ? #7806

Closed
gagarin55 opened this issue Feb 5, 2018 · 1 comment
Closed

JSON-RPC Api different behavior with Geth, which is correct ? #7806

gagarin55 opened this issue Feb 5, 2018 · 1 comment
Labels
M6-rpcapi 📣 RPC API. Z1-question 🙋‍♀️ Issue is a question. Closer should answer.
Milestone

Comments

@gagarin55
Copy link

I'm running:

  • Which Parity version?: Parity//v1.9.2-beta-0feb0bb-20180201/x86_64-linux-gnu/rustc1.23.0
  • Which operating system?: Linux
  • Are you fully synchronized?: yes
  • Which network are you connected to?: ethereum
  • Did you try to restart the node?: yes

I'm calling Parity json-rpc:

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

Result: Invalid params: Invalid bytes format. Expected a 0x-prefixed hex string with even length.

In the same time Geth/v1.7.3-stable-8c95ba44/linux-amd64/go1.9.2

proceeds this request without error.

@5chdn
Copy link
Contributor

5chdn commented Feb 5, 2018

Looks like web3 is malforming the calldata, can you debug that?

Not a parity issue.

@5chdn 5chdn closed this as completed Feb 5, 2018
@5chdn 5chdn added Z1-question 🙋‍♀️ Issue is a question. Closer should answer. M6-rpcapi 📣 RPC API. labels Feb 5, 2018
@5chdn 5chdn added this to the 1.10 milestone Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
M6-rpcapi 📣 RPC API. Z1-question 🙋‍♀️ Issue is a question. Closer should answer.
Projects
None yet
Development

No branches or pull requests

2 participants