Skip to content

Ethers returns error when try to get block "49364730" in BSC after EIP-7702 update #4985

@IvanKodak

Description

@IvanKodak

Ethers Version

6.14.0

Search Terms

EIP-7702

Describe the Problem

Ethers returns an error when trying to get a block "49364730" in BSC.
This is a code snippet to reproduce:
https://github.com/IvanKodak/ethers-unhandled-rejection-example/blob/main/src/eip-7702-issue.ts

Error returns with all providers that I tried to use, but with "ethers" version 6.13.2, the block data successfully returns.

Code Snippet

Contract ABI

Errors

Error: invalid value for value.authorizationList (invalid yParity (argument="signature", value={ "address": "0x8c1ad1578a8c2bbfd5208d1a26eb9f62f8f06b9f", "chainId": "0x38", "nonce": "0x0", "r": "0xc2360b60a433940c342a50511d217158cc5f7ea4b953309a9026d784c8313f6b", "s": "0x189b953d5e1d6eca728a9c2940681e762ff3ea4de22d8f64addf5bb42b88e5d2", "yParity": "0x1c" }, code=INVALID_ARGUMENT, version=6.14.0)) (value={ "accessList": [  ], "authorizationList": [ { "address": "0x8c1ad1578a8c2bbfd5208d1a26eb9f62f8f06b9f", "chainId": "0x38", "nonce": "0x0", "r": "0xc2360b60a433940c342a50511d217158cc5f7ea4b953309a9026d784c8313f6b", "s": "0x189b953d5e1d6eca728a9c2940681e762ff3ea4de22d8f64addf5bb42b88e5d2", "yParity": "0x1c" } ], "blockHash": "0x1f5a6bf98cb093b7e07212919d34e7132cbdb74e4a8c4f0fabe8a186b3eb50bd", "blockNumber": "0x2f13efa", "chainId": "0x38", "from": "0x89a4014e7d70a5fa81e6ec7de2eee4f0585891eb", "gas": "0x186a0", "gasPrice": "0x3b9aca00", "hash": "0xc182f3cd4d647ea1dac4e64014542a7f24bbcfedb86cbf24a2ee80525ed582ce", "input": "0x954ab4b2", "maxFeePerGas": "0x3b9aca00", "maxPriorityFeePerGas": "0x3b9aca00", "nonce": "0x1a", "r": "0xa15049f3452dbe549b009b63348c640755529bbe89eba4a38e63f6fde8d8b8c6", "s": "0x5b27f7447e8c78e35730983d3d48eb39f9dbadb1eeda1bd63125dabd2a34725f", "to": "0x89a4014e7d70a5fa81e6ec7de2eee4f0585891eb", "transactionIndex": "0x48", "type": "0x4", "v": "0x0", "value": "0x0", "yParity": "0x0" }, code=BAD_DATA, version=6.14.0)

Environment

node.js (v12 or newer)

Environment (Other)

No response

Metadata

Metadata

Assignees

Labels

fixed/completeThis Bug is fixed or Enhancement is complete and published.v6Issues regarding v6

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy