From bb44cc608c84f449259e6a20cb68e35ef86c6719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Wed, 2 Oct 2024 16:31:47 +0200 Subject: [PATCH] Re-introduce getTransactionByHash2 as an alias for getTransactionByHash For compatibility with the pow-migration tool --- clients/nodejs/modules/JsonRpcServer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/nodejs/modules/JsonRpcServer.js b/clients/nodejs/modules/JsonRpcServer.js index a88eaf63d..e2ffc12a4 100644 --- a/clients/nodejs/modules/JsonRpcServer.js +++ b/clients/nodejs/modules/JsonRpcServer.js @@ -105,6 +105,7 @@ class JsonRpcServer { this._methods.set('getTransactionByBlockHashAndIndex', this.getTransactionByBlockHashAndIndex.bind(this)); this._methods.set('getTransactionByBlockNumberAndIndex', this.getTransactionByBlockNumberAndIndex.bind(this)); this._methods.set('getTransactionByHash', this.getTransactionByHash.bind(this)); + this._methods.set('getTransactionByHash2', this.getTransactionByHash.bind(this)); this._methods.set('getTransactionReceipt', this.getTransactionReceipt.bind(this)); this._methods.set('getTransactionsByAddress', this.getTransactionsByAddress.bind(this)); this._methods.set('mempoolContent', this.mempoolContent.bind(this));