|
|
@ -100,7 +100,7 @@ class TxRunner { |
|
|
|
gasLimit: new BN(gasLimit, 10), |
|
|
|
gasLimit: new BN(gasLimit, 10), |
|
|
|
to: to, |
|
|
|
to: to, |
|
|
|
value: new BN(value, 10), |
|
|
|
value: new BN(value, 10), |
|
|
|
data: new Buffer(data.slice(2), 'hex') |
|
|
|
data: Buffer.from(data.slice(2), 'hex') |
|
|
|
}) |
|
|
|
}) |
|
|
|
tx.sign(account.privateKey) |
|
|
|
tx.sign(account.privateKey) |
|
|
|
|
|
|
|
|
|
|
@ -133,7 +133,7 @@ class TxRunner { |
|
|
|
} |
|
|
|
} |
|
|
|
callback(err, { |
|
|
|
callback(err, { |
|
|
|
result: result, |
|
|
|
result: result, |
|
|
|
transactionHash: ethJSUtil.bufferToHex(new Buffer(tx.hash())) |
|
|
|
transactionHash: ethJSUtil.bufferToHex(Buffer.from(tx.hash())) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|