glifio / filecoin-iac Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Repo: https://github.com/xBalbinus/fevm-foundry-kit#interact-with-the-contracts
I am trying to run the following command using the above repo:
forge script script/SimpleCoin.s.sol:MyScript --rpc-url https://api.hyperspace.node.glif.io/rpc/v1 --broadcast --verify -vvvv
However, this results in a gas limit error:
See transaction here on Filfox
So I manually upped the gas limit (around 50x multiplier) using the command below:
forge script script/SimpleCoin.s.sol:MyScript --rpc-url https://api.hyperspace.node.glif.io/rpc/v1 --broadcast --verify -vvvv -g 5000
And the script still errored out with a generic error:
See transaction here on Filfox
However, when the original script is run against Sepolia it runs fine. This indicated something may be off with the rpc and Foundry.
Issue: Hyperspace rpc returns wrong gas amount for network: existing deployments with the below gas amount is significantly underpriced.
Reproduction:
cast gas-price --rpc-url https://api.hyperspace.node.glif.io/rpc/v1
199668
Error: (code: 1, message: verify msg failed: message will not be included in a block: 'GasLimit' field cannot be less than the cost of storing a message on chain 315871 < 1025863, data: None)
This response header is returned from https://api.node.glif.io/rpc/v0 but not the wss one.
I have been working with a community member to create a Foundry starter kit for the FEVM, but suddenly after this weekend the kit is returning "contract not deployed" errors even though the contracts are deploying (confirmed by looking at Hyperspace Filfox). It was working before this weekend. The community member has confirmed this seems to be happening with other foundry projects.
Do you know if you all could have made any changes to the RPC that could be causing this? Hardhat seems to be working fine.
Network:
Hyperspace
Repo:
https://github.com/xBalbinus/fevm-foundry-kit#deploy-the-contracts
Command:
forge create
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.