Skip to content

ETHTransactionBuilder.autoFill Incorrect judgment of transaction type #31

@changlaoye

Description

@changlaoye

When the "ETHTransactionType" value is not specified, on some EVM chains, calling the "_calculateEIP1559Fee" method in "ETHTransactionBuilder.autoFill" will invoke the "eth_feeHistory" RPC method, but the returned value will be 0. In "final fee = historical.toFee()", the "baseFee" value is 0, which leads to the transaction type being incorrectly identified as "EIP-1559".
This can be tested on the BSC chain.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions