You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to deploy smart contracts through hardhat and hardhat-ledger plugin (1.0.3) to Polygon zkEVM networks (Cardona or Mainnet) is not possible because it throws an error when trying to send signed transaction with eth_sendRawTransaction and EIP-1559 format.
{"jsonrpc":"2.0","id":17,"error":{"code":-32000,"message":"RPC error response: error getting from address"}}
So at this moment to support deploying to Polygon zkEVM networks this ledger-plugin should send legacy transaction (type=0) instead and calcultaing then gasPrice.
This will produce legacy transaction format:
daveroga
changed the title
Hardhat-ledger plugin error using blockchains that don't support EIP-1559 format for transactions
Hardhat-ledger plugin error using blockchains that don't support EIP-1559 transaction format
Sep 27, 2024
Version of Hardhat
2.22.10
What happened?
Trying to deploy smart contracts through hardhat and
hardhat-ledger
plugin (1.0.3) to Polygon zkEVM networks (Cardona or Mainnet) is not possible because it throws an error when trying to send signed transaction witheth_sendRawTransaction
and EIP-1559 format.Debugging it I see that is sending the transaction with type EIP-1559 that is not supported by zkEVM now (https://support.polygon.technology/support/solutions/articles/82000897869-does-polygon-zkevm-support-the-eip-1559-format-for-transactions-).
So at this moment to support deploying to Polygon zkEVM networks this ledger-plugin should send legacy transaction (type=0) instead and calcultaing then
gasPrice
.This will produce legacy transaction format:
Minimal reproduction steps
hardhat-ledger
plugin following the instructions here https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-ledgerprovider
for zkEVM networks with empty array [] becauseeth_accounts
is not supported in zkEVM node now (Hardhat-ledger plugin error using rpc nodes that don't support eth_accounts #5785).ledgerAccounts
address with any Ledger device.Search terms
hardhat-ledger zkevm eip-1559 eth_sendRawTransaction
The text was updated successfully, but these errors were encountered: