Skip to content

Commit

Permalink
fix get epoch receipts optional params
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Nov 5, 2024
1 parent 6bede27 commit 4e84a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "js-conflux-sdk",
"description": "JavaScript Conflux Software Development Kit",
"version": "2.4.10",
"version": "2.4.11",
"license": "LGPL-3.0",
"author": "[email protected]",
"repository": "https://github.com/Conflux-Chain/js-conflux-sdk.git",
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/cfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ class CFX extends RPCMethodFactory {
* @param {string} pivotBlockHash Hash of pivot block
* @returns {Promise<Array>} All receipts of one epoch
*/
async getEpochReceiptsByPivotBlockHash(pivotBlockHash) {
const result = await this.conflux.request({ method: 'cfx_getEpochReceipts', params: [`hash:${pivotBlockHash}`] });
async getEpochReceiptsByPivotBlockHash(pivotBlockHash, ...extra) {
const result = await this.conflux.request({ method: 'cfx_getEpochReceipts', params: [`hash:${pivotBlockHash}`, ...extra] });
return cfxFormat.epochReceipts(result);
}

Expand Down

0 comments on commit 4e84a9d

Please sign in to comment.