diff --git a/packages/ethers/dist/ethers.esm.js b/packages/ethers/dist/ethers.esm.js index a29f633886..70f62f6f0a 100644 --- a/packages/ethers/dist/ethers.esm.js +++ b/packages/ethers/dist/ethers.esm.js @@ -38560,20 +38560,17 @@ const { } = axios; async function getNodePublicKey(rpcEndpoint, options) { - let blockNumOrHash = 'latest'; + let blockNumber = 'latest'; if (options) { - if (options.blockHash) { - blockNumOrHash = options.blockHash; - } if (options.blockNumber) { - blockNumOrHash = options.blockNumber; + blockNumber = options.blockNumber; } } const requestData = { id: 1, jsonrpc: '2.0', method: 'eth_getNodePublicKey', - params: [blockNumOrHash], + params: [blockNumber], }; try { const { data } = await axios.post(rpcEndpoint, requestData); diff --git a/packages/ethers/dist/ethers.umd.js b/packages/ethers/dist/ethers.umd.js index 3bf713bc3f..914c323116 100644 --- a/packages/ethers/dist/ethers.umd.js +++ b/packages/ethers/dist/ethers.umd.js @@ -28848,20 +28848,17 @@ exports.getNodePublicKey = void 0; const axios_1 = __importDefault(require$$0$1); async function getNodePublicKey(rpcEndpoint, options) { - let blockNumOrHash = 'latest'; + let blockNumber = 'latest'; if (options) { - if (options.blockHash) { - blockNumOrHash = options.blockHash; - } if (options.blockNumber) { - blockNumOrHash = options.blockNumber; + blockNumber = options.blockNumber; } } const requestData = { id: 1, jsonrpc: '2.0', method: 'eth_getNodePublicKey', - params: [blockNumOrHash], + params: [blockNumber], }; try { const { data } = await axios_1.default.post(rpcEndpoint, requestData);