Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

424
Views
¿Cómo resolver el conflicto de versión de EIP entre la red y el cliente?

Inicié la red Hardhat local (para probar contratos inteligentes), me conecté a ella usando Nethereum, y cuando intento iniciar cualquier transacción, se lanza la excepción ChainId required for TransactionType 0X02 EIP1559 . Luego cambié la red a Ganache, pero el error seguía siendo el mismo. Por ejemplo (código F#):

 open System type Account = { Address : string PrivateKey: string } [<EntryPoint>] let main argv = let accounts = [| { Address = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"; PrivateKey = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" } { Address = "0x70997970c51812dc3a010c7d01b50e0d17dc79c8"; PrivateKey = "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" } { Address = "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc"; PrivateKey = "0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a" } |] |> Seq.map (fun a -> Nethereum.Web3.Accounts.Account(a.PrivateKey)) let client = Seq.head accounts let web3 = new Nethereum.Web3.Web3(client, "http://localhost:8545") web3.Eth.Accounts.SendRequestAsync().Result // This works currectly |> Seq.iter (fun a -> printfn "%s" a) // and prints all network addresses let tx = web3.Eth.GetEtherTransferService().TransferEtherAndWaitForReceiptAsync("0x70997970c51812dc3a010c7d01b50e0d17dc79c8", 10m).Result // Here throws exception: localhost:8545 ChainId required for TransactionType 0X02 EIP1559) let balance = web3.Eth.GetBalance.SendRequestAsync("0x70997970c51812dc3a010c7d01b50e0d17dc79c8").Result 0

Creo que debería esperar hasta que los desarrolladores de Nethereum implementen el soporte de EIP-1559 porque no hay alternativas en el mundo .NET. ¿Es posible desactivar de alguna manera este requisito para las transacciones o cambiar la versión del estándar actual? No encontré una función similar en la documentación de Hardhat y Ganache, pero tal vez hay redes para desarrolladores que tienen esta función.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

La solución es bastante simple: necesitaba especificar el ChainId al crear una cuenta. Para Hardhat, este valor es 31337.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!