Hardhat upgrades not working because can't get pending block

Hello,

we are trying to deploy an upgradable contract to a private Polygon Edge node using @openzeppelin/hardhat-upgrades and we are getting the following error - fetching the pending header is not supported. When doing an rpc call to eth_getBlockByNumber using the pending flag we get this error back - {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"fetching the pending header is not supported"}}. Does the hardhat upgrades plugin depend on getting pending blocks and if so is there a way to work around this?

Many Thanks,

Chris

The plugin does call eth_getTransactionByHash and eth_getTransactionReceipt to verify whether deployments were completed. I'm not aware of it calling eth_getBlockByNumber directly, but I do see that RPC call when I run a deployment script.