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

eth_getTransactionReceipt JSON RPC API returns #{tx_hash} into an Eth Receipt: failed to parse contract creation result: EOF #11622

Closed
5 of 11 tasks
Tracked by #11746
vbaranov opened this issue Feb 14, 2024 · 3 comments
Assignees
Labels
effort/weeks Effort: Multiple Weeks kind/bug Kind: Bug

Comments

@vbaranov
Copy link

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

\Daemon:  1.25.2+mainnet+git.f51f83bfe+api1.5.0
Local: lotus version 1.25.2+mainnet+git.f51f83bfe

Repro Steps

  1. Run '...'
  2. Do '...'
  3. See error '...'
    ...

Describe the Bug

Note: we run Lotus node for Filecoin Mainnet in the archive mode.

eth_getTransactionReceipt JSON RPC API method on FEVM returns #{tx_hash} into an Eth Receipt: failed to parse contract creation result: EOF for some transaction hashes.

curl -s -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getTransactionReceipt", "params": ["0xe0a9b4e0cb84e6cbf966771f7a74a9336d707130ba859a0fb6c5d452c1895c38"],"id":1,"jsonrpc":"2.0"}' http://localhost:1234/rpc/v1

{"jsonrpc":"2.0","id":1,"error":{"code":1,"message":"failed to convert 0xe0a9b4e0cb84e6cbf966771f7a74a9336d707130ba859a0fb6c5d452c1895c38 into an Eth Receipt: failed to parse contract creation result: EOF"}}

At the same time transaction with this hash is included into block:

curl -s -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBlockByHash", "params": ["0xc4ce9cd85b497ef3c03e8ee977c75c5654fe9c8c02939193003105646ce2319c", false],"id":1,"jsonrpc":"2.0"}' http://localhost:1234/rpc/v1 | jq .result.transactions | grep 0xe0a9b4e0cb84e6cbf966771f7a74a9336d707130ba859a0fb6c5d452c1895c38

  "0xe0a9b4e0cb84e6cbf966771f7a74a9336d707130ba859a0fb6c5d452c1895c38",

Logging Information

What exact logs do you need for this specific problem? Please guide me to the right direction how to get those.
@rjan90 rjan90 added this to FilOz Feb 15, 2024
@rjan90 rjan90 moved this to 🐱Todo in FilOz Feb 15, 2024
@rvagg
Copy link
Member

rvagg commented Feb 21, 2024

@vbaranov could you give me the output of this please? curl -s -X POST -H "Content-Type: application/json" --data '{"method":"Filecoin.EthGetMessageCidByTransactionHash","params":["0xe0a9b4e0cb84e6cbf966771f7a74a9336d707130ba859a0fb6c5d452c1895c38"],"id":1,"jsonrpc":"2.0"}' http://localhost:1234/rpc/v1

@vbaranov
Copy link
Author

@vbaranov could you give me the output of this please? curl -s -X POST -H "Content-Type: application/json" --data '{"method":"Filecoin.EthGetMessageCidByTransactionHash","params":["0xe0a9b4e0cb84e6cbf966771f7a74a9336d707130ba859a0fb6c5d452c1895c38"],"id":1,"jsonrpc":"2.0"}' http://localhost:1234/rpc/v1

Sure,

{"jsonrpc":"2.0","result":{"/":"bafy2bzacedqktnhazocons7zmz3r66tuvezw24drgc5ilgqpw3c5iuwbrfodq"},"id":1}

@rjan90 rjan90 moved this from 🐱Todo to Triage in FilOz Mar 19, 2024
@rjan90 rjan90 added the effort/weeks Effort: Multiple Weeks label Mar 19, 2024
@rjan90 rjan90 moved this from Triage to 🐱Todo in FilOz Mar 19, 2024
@Stebalien
Copy link
Member

Fixed in #11609.

@rjan90 rjan90 moved this from 🐱Todo to ☑️Done (Archive) in FilOz Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/weeks Effort: Multiple Weeks kind/bug Kind: Bug
Projects
Status: ☑️ Done (Archive)
Development

No branches or pull requests

6 participants