From d34ffec0edf53c21933a3a76a12bddc1d516caa3 Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 13 Jan 2023 14:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=8F=91=E9=80=81=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E4=BA=A4=E6=98=93=E5=89=8D=EF=BC=8C=E5=90=91?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=8A=9B=E5=87=BAtransactionHash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patches/web3-core-method+1.7.4.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 patches/web3-core-method+1.7.4.patch diff --git a/patches/web3-core-method+1.7.4.patch b/patches/web3-core-method+1.7.4.patch new file mode 100644 index 0000000..f09d8fa --- /dev/null +++ b/patches/web3-core-method+1.7.4.patch @@ -0,0 +1,15 @@ +diff --git a/node_modules/web3-core-method/lib/index.js b/node_modules/web3-core-method/lib/index.js +index 84cb1c3..f8aea93 100644 +--- a/node_modules/web3-core-method/lib/index.js ++++ b/node_modules/web3-core-method/lib/index.js +@@ -561,6 +561,10 @@ Method.prototype.buildCall = function () { + }; + // SENDS the SIGNED SIGNATURE + var sendSignedTx = function (sign) { ++ var returnObj = Object.assign({}, payload.params[0]); ++ returnObj.method = payload.method; ++ returnObj.transactionHash = sign.transactionHash; ++ defer.eventEmitter.emit('presend', returnObj); + var signedPayload = { ...payload, + method: 'eth_sendRawTransaction', + params: [sign.rawTransaction]