Giter Club home page Giter Club logo

Comments (5)

klkvr avatar klkvr commented on June 18, 2024

Could you please share genesis.json anvil is initialized with?

from foundry.

colinlyguo avatar colinlyguo commented on June 18, 2024

Could you please share genesis.json anvil is initialized with?

{
	"config": {
		"chainId": 32382,
		"homesteadBlock": 0,
		"daoForkSupport": true,
		"eip150Block": 0,
		"eip155Block": 0,
		"eip158Block": 0,
		"byzantiumBlock": 0,
		"constantinopleBlock": 0,
		"petersburgBlock": 0,
		"istanbulBlock": 0,
		"muirGlacierBlock": 0,
		"berlinBlock": 0,
		"londonBlock": 0,
		"arrowGlacierBlock": 0,
		"grayGlacierBlock": 0,
		"shanghaiTime": 0,
		"cancunTime": 0,
		"terminalTotalDifficulty": 0,
		"terminalTotalDifficultyPassed": true
	},
	"nonce": "0x0",
	"timestamp": "0x65f40695",
	"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000123463a4b065722e99115d6c222f267d9cabb5240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
	"gasLimit": "0x1c9c380",
	"difficulty": "0x1",
	"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
	"coinbase": "0x0000000000000000000000000000000000000000",
	"alloc": {
		"1c5a77d9fa7ef466951b2f01f724bca3a5820b63": {
			"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
		},
		"33e0f539e31b35170faaa062af703b76a8282bf7": {
			"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
		},
		"1e32abcfe6db15c1570709e3fc02725335f50a47": {
			"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
		},
		"03a1bba60b5aa37094cf16123add674c01589488": {
			"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
		}
	},
	"number": "0x0",
	"gasUsed": "0x0",
	"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
	"baseFeePerGas": null,
	"excessBlobGas": null,
	"blobGasUsed": null
}

from foundry.

klkvr avatar klkvr commented on June 18, 2024

For me running anvil --init genesis.json and then cast public <tx payload> with tx payload you've provided results in successful tx inclusion, am I misunderstanding the issue?

from foundry.

colinlyguo avatar colinlyguo commented on June 18, 2024

For me running anvil --init genesis.json and then cast public <tx payload> with tx payload you've provided results in successful tx inclusion, am I misunderstanding the issue?

interesting. then the error may be returned by the Go SDK...

from foundry.

ngotchac avatar ngotchac commented on June 18, 2024

Had the same issue, and we mostly see it (I think) using Go's go-ethereum lib since it does check for v, r, s validity when parsing a full block from RPC.

The bug was introduced here: 4a1ad3658#diff-bbb221c267c4e8729a42aafb229eb1119e229db1cfa531b4bf61b3e928cac341

by using

v: U256::from(t.signature().v().y_parity_byte())

for all the tx type variants, instead of the raw v value.

I'll try to make a PR to fix it

from foundry.

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.