在发送本地签名交易前,向客户端抛出transactionHash
This commit is contained in:
parent
b4a434b12b
commit
e30a47f309
15
patches/web3-core-method+1.7.4.patch
Normal file
15
patches/web3-core-method+1.7.4.patch
Normal file
@ -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]
|
Loading…
x
Reference in New Issue
Block a user