Coder Social home page Coder Social logo

Comments (2)

rvagg avatar rvagg commented on June 9, 2024

Adding @parva-jain's comment from the hardhat thread:

The interesting thing is that till few weeks before, the tests were running in the filecoin fork as well(sometimes it was failing with same reason). But now from last 2 weeks, its falling everytime. Let me know if there's any hack around it or how should I test functionalities specific to filecoin??

My guess is that there's a parsing mismatch between Lotus output of EthBlock

https://github.com/filecoin-project/lotus/blob/master/chain/types/ethtypes/eth_types.go#L157-L180

And what hardhat is parsing:

https://github.com/NomicFoundation/hardhat/blob/af7807cf38842a4f56e7f4b966b806e39631568a/packages/hardhat-core/src/internal/core/jsonrpc/types/output/block.ts#L18-L54

But without knowing which API call it's making it's hard to see what's wrong there. Is the whole thing undefined? Is it just transactions, is it gasPrice? I think transactions comes out differently depending on what you call and how you call it.

If someone can repro this and show the API calls and responses that would be super helpful, @parva-jain I don't suppose you feel like modifying hardhard to watch HTTP traffic, or perhaps it has a debug mode where you can see it so we can narrow down the call it's making?

from lotus.

parva-jain avatar parva-jain commented on June 9, 2024

I'm testing the contracts that interact with already deployed FEVM contracts (glif protocol). Unable to do that with hardhat although it supports fork testing for all EVM compatible networks.
Now I have integrated Foundry in my project as well and able to do the fork testing. But FEVM should also be compatible with hardhat as it is one of the most used framework. This issue wont be helpful in my case as I have moved ahead and found a work around but would be better to fix it to onboard more projects in FEVM ecosystem.

from lotus.

Related Issues (20)

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.