mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #709 from MetaMask/i707-MixedCaseAddresses
Add tolerance for mixed case addresses
This commit is contained in:
commit
7c006dac55
@ -26,7 +26,7 @@ function IdManagement (opts) {
|
|||||||
this.signTx = function (txParams) {
|
this.signTx = function (txParams) {
|
||||||
// normalize values
|
// normalize values
|
||||||
txParams.to = ethUtil.addHexPrefix(txParams.to)
|
txParams.to = ethUtil.addHexPrefix(txParams.to)
|
||||||
txParams.from = ethUtil.addHexPrefix(txParams.from)
|
txParams.from = ethUtil.addHexPrefix(txParams.from.toLowerCase())
|
||||||
txParams.value = ethUtil.addHexPrefix(txParams.value)
|
txParams.value = ethUtil.addHexPrefix(txParams.value)
|
||||||
txParams.data = ethUtil.addHexPrefix(txParams.data)
|
txParams.data = ethUtil.addHexPrefix(txParams.data)
|
||||||
txParams.gasLimit = ethUtil.addHexPrefix(txParams.gasLimit || txParams.gas)
|
txParams.gasLimit = ethUtil.addHexPrefix(txParams.gasLimit || txParams.gas)
|
||||||
@ -51,7 +51,7 @@ function IdManagement (opts) {
|
|||||||
|
|
||||||
this.signMsg = function (address, message) {
|
this.signMsg = function (address, message) {
|
||||||
// sign message
|
// sign message
|
||||||
var privKeyHex = this.exportPrivateKey(address)
|
var privKeyHex = this.exportPrivateKey(address.toLowerCase())
|
||||||
var privKey = ethUtil.toBuffer(privKeyHex)
|
var privKey = ethUtil.toBuffer(privKeyHex)
|
||||||
var msgSig = ethUtil.ecsign(new Buffer(message.replace('0x', ''), 'hex'), privKey)
|
var msgSig = ethUtil.ecsign(new Buffer(message.replace('0x', ''), 'hex'), privKey)
|
||||||
var rawMsgSig = ethUtil.bufferToHex(concatSig(msgSig.v, msgSig.r, msgSig.s))
|
var rawMsgSig = ethUtil.bufferToHex(concatSig(msgSig.v, msgSig.r, msgSig.s))
|
||||||
|
@ -7,6 +7,6 @@ var changelog = fs.readFileSync(path.join(__dirname, '..', 'CHANGELOG.md')).toSt
|
|||||||
|
|
||||||
var log = changelog.split(version)[1].split('##')[0].trim()
|
var log = changelog.split(version)[1].split('##')[0].trim()
|
||||||
|
|
||||||
let msg = `**MetaMask ${version}** now published to the Chrome Store! It should be available over the next hour!\n${log}`
|
let msg = `*MetaMask ${version}* now published to the Chrome Store! It should be available over the next hour!\n${log}`
|
||||||
|
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
"through2": "^2.0.1",
|
"through2": "^2.0.1",
|
||||||
"vreme": "^3.0.2",
|
"vreme": "^3.0.2",
|
||||||
"web3": "ethereum/web3.js#260ac6e78a8ce4b2e13f5bb0fdb65f4088585876",
|
"web3": "ethereum/web3.js#260ac6e78a8ce4b2e13f5bb0fdb65f4088585876",
|
||||||
"web3-provider-engine": "^8.1.3",
|
"web3-provider-engine": "^8.1.5",
|
||||||
"web3-stream-provider": "^2.0.6",
|
"web3-stream-provider": "^2.0.6",
|
||||||
"xtend": "^4.0.1"
|
"xtend": "^4.0.1"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user