I'm trying to deploy a contract to Polygon using a Ledger device thru Truffle. However, the signature returned is invalid because it appears ledger wraps the chainID at 127.
I've mostly duplicated this sample. I get the signature correctly, but then truffle (correctly) points out that the signature is no good because of the bad v
parameter.
Has anyone successfully deployed a contract on Polygon using Ledger?
Figured it out - the problem was I was trying to use
ethers.js LedgerSigner
, which uses out-of-date versions of the ledger libraries.Removing that library, wrote my own
LedgerSigner
with latest ledger libraries fixed that issue.