arb-ethers-web3-bridge
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -487,8 +487,18 @@ /* | ||
case 'eth_sendTransaction': | ||
const txRequest = params[0] | ||
signer.getAddress().then( | ||
function (address) { | ||
if (utils.getAddress(params[0].from) !== address) { | ||
respondError('invalid from address', Errors.InvalidParams) | ||
if (txRequest.from) { | ||
if (utils.getAddress(txRequest.from) !== address) { | ||
respondError('invalid from address', Errors.InvalidParams) | ||
} | ||
delete(txRequest.from) | ||
} | ||
signer.sendTransaction(params[0]).then( | ||
if (txRequest.gas) { | ||
txRequest.gasLimit = txRequest.gas | ||
delete(txRequest.gas) | ||
} | ||
signer.sendTransaction(txRequest).then( | ||
function (tx) { | ||
@@ -495,0 +505,0 @@ respond(tx.hash) |
{ | ||
"name": "arb-ethers-web3-bridge", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Arbitrum bridge for converting ethers provider into web3", | ||
@@ -5,0 +5,0 @@ "author": "Offchain Labs, Inc.", |
33952
758