Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Merge branch 'mercury' of https://github.com/kvhnuke/etherwallet into…
Browse files Browse the repository at this point in the history
… mercury

# By kvhnuke
# Via kvhnuke
* 'mercury' of https://github.com/kvhnuke/etherwallet:
  eip155 backwards compatibility
  added back the block numbers to footer
  url parameters case insensitive
  • Loading branch information
tayvano committed Nov 21, 2016
2 parents a80dd24 + 04d4a52 commit 39c8433
Show file tree
Hide file tree
Showing 10 changed files with 142,460 additions and 160,884 deletions.
1 change: 1 addition & 0 deletions app/includes/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
</p>

<p><a data-toggle="modal" data-target="#disclaimerModal" translate="FOOTER_4"> Disclaimer </a></p>
<p ng-show="showBlocks" class="text-right" style="font-size: 10px">ETH Block#: {{ethBlockNumber}} &middot; ETC Block#: {{etcBlockNumber}}</p>

</div>

Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/footerCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ var footerCtrl = function($scope) {
ajaxReq.getCurrentBlock(true, function(data){$scope.etcBlockNumber = data.data;});
}
$scope.setBlockNumbers();
setInterval($scope.setBlockNumbers,3000);
//setInterval($scope.setBlockNumbers,3000);
};
module.exports = footerCtrl;
10 changes: 6 additions & 4 deletions app/scripts/ethFuncs.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,19 @@ ethFuncs.getDataObj = function(to, func, arrVals) {
data: func + val
};
}
ethFuncs.ecSignEIP155 = function(msgHash, privateKey){
ethFuncs.ecSignEIP155 = function(msgHash, privateKey, old){
var sig = ethUtil.secp256k1.sign(msgHash, privateKey);
var ret = {};
ret.r = sig.signature.slice(0, 32);
ret.s = sig.signature.slice(32, 64);
ret.v = sig.recovery + 37;
ret.v = old ? sig.recovery + 27 : sig.recovery + 37;
return ret;
}
ethFuncs.hashEIP155 = function(tx){
ethFuncs.hashEIP155 = function(tx, old){
tx.raw[6] = 18;
return ethUtil.rlphash(tx.raw)
var toHash = tx.raw;
if(old) toHash = toHash.splice(0,6);
return ethUtil.rlphash(toHash);
}
ethFuncs.estimateGas = function(dataObj, isClassic, callback) {
var gasLimit = 2000000;
Expand Down
3 changes: 2 additions & 1 deletion app/scripts/globalFuncs.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ globalFuncs.isNumeric = function(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
globalFuncs.urlGet = function(name) {
if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(location.search)) return this.stripTags(decodeURIComponent(name[1]));
name = name.toLowerCase();
if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(location.search.toLowerCase())) return this.stripTags(decodeURIComponent(name[1]));
}
globalFuncs.stripTags = function(str) {
var SCRIPT_REGEX = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;
Expand Down
8 changes: 7 additions & 1 deletion chrome-extension/cx-wallet.html
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,12 @@ <h4 class="modal-title" translate="MNEM_1"> Please select the address you would
<article class="tab-pane active" ng-if="globalService.currentTab==globalService.tabs.sendTransaction.id" ng-controller='sendTxCtrl'>

<!-- Header -->
<p class="alert alert-info" translate="WARN_Send_Link" ng-show="hasQueryString"> You arrived via a link that has the address, amount, gas or data fields filled in for you. You can change any information before sending. Unlock your wallet to get started. </p>
<div class="alert alert-info" ng-show="hasQueryString">
<p translate="WARN_Send_Link" >You arrived via a link that has the address, amount, gas or data fields filled in for you. You can change any information before sending. Unlock your wallet to get started.</p>
<p translate="WARN_Send_Link_2" ng-show="hasInvalidSendModeAndData"> **Warning:** You can only include data if you are sending via "ETH (Standard Transaction)". Please remove the "sendMode" and/or "tokenSymbol" from the URI to send a transaction with data. </p>
</div>



<article class="collapse-container">
<div ng-click="wd = !wd">
Expand Down Expand Up @@ -2226,6 +2231,7 @@ <h4 translate="HELP_FAQ_Title">More Helpful Answers to Frequent Questions </h4>
</p>

<p><a data-toggle="modal" data-target="#disclaimerModal" translate="FOOTER_4"> Disclaimer </a></p>
<p ng-show="showBlocks" class="text-right" style="font-size: 10px">ETH Block#: {{ethBlockNumber}} &middot; ETC Block#: {{etcBlockNumber}}</p>

</div>

Expand Down
8 changes: 7 additions & 1 deletion chrome-extension/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,12 @@ <h4 translate="x_Json">JSON File (Unencrypted)</h4>
<article class="tab-pane active" ng-if="globalService.currentTab==globalService.tabs.sendTransaction.id" ng-controller='sendTxCtrl'>

<!-- Header -->
<p class="alert alert-info" translate="WARN_Send_Link" ng-show="hasQueryString"> You arrived via a link that has the address, amount, gas or data fields filled in for you. You can change any information before sending. Unlock your wallet to get started. </p>
<div class="alert alert-info" ng-show="hasQueryString">
<p translate="WARN_Send_Link" >You arrived via a link that has the address, amount, gas or data fields filled in for you. You can change any information before sending. Unlock your wallet to get started.</p>
<p translate="WARN_Send_Link_2" ng-show="hasInvalidSendModeAndData"> **Warning:** You can only include data if you are sending via "ETH (Standard Transaction)". Please remove the "sendMode" and/or "tokenSymbol" from the URI to send a transaction with data. </p>
</div>



<article class="collapse-container">
<div ng-click="wd = !wd">
Expand Down Expand Up @@ -2036,6 +2041,7 @@ <h2 translate="BULK_SuccessMsg">Success! Your wallets have been generated.</h2>
</p>

<p><a data-toggle="modal" data-target="#disclaimerModal" translate="FOOTER_4"> Disclaimer </a></p>
<p ng-show="showBlocks" class="text-right" style="font-size: 10px">ETH Block#: {{ethBlockNumber}} &middot; ETC Block#: {{etcBlockNumber}}</p>

</div>

Expand Down
Loading

0 comments on commit 39c8433

Please sign in to comment.