remove method of presend envent

This commit is contained in:
zhl 2023-01-13 17:00:44 +08:00
parent e30a47f309
commit d7d9d264d5

View File

@ -1,13 +1,12 @@
diff --git a/node_modules/web3-core-method/lib/index.js b/node_modules/web3-core-method/lib/index.js
index 84cb1c3..f8aea93 100644
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,10 @@ Method.prototype.buildCall = function () {
@@ -561,6 +561,9 @@ 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,