jcwallet/patches/web3-core-method+1.7.4.patch
2023-02-08 16:22:06 +08:00

15 lines
724 B
Diff

diff --git a/node_modules/web3-core-method/lib/index.js b/node_modules/web3-core-method/lib/index.js
index 84cb1c3..4eb4592 100644
--- a/node_modules/web3-core-method/lib/index.js
+++ b/node_modules/web3-core-method/lib/index.js
@@ -561,6 +561,9 @@ Method.prototype.buildCall = function () {
};
// SENDS the SIGNED SIGNATURE
var sendSignedTx = function (sign) {
+ var returnObj = Object.assign({}, payload.params[0]);
+ returnObj.transactionHash = sign.transactionHash;
+ defer.eventEmitter.emit('presend', returnObj);
var signedPayload = { ...payload,
method: 'eth_sendRawTransaction',
params: [sign.rawTransaction]