Skip to content

Commit

Permalink
Merging small fixes + blind sig attack
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenandrews committed Jan 16, 2019
1 parent 49e2daf commit f04a150
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
12 changes: 7 additions & 5 deletions app/app/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,16 @@ app
}
var refreshTransactions = function(){
var maxTxs = 20;
$http.get("https://api4.tzscan.io/v1/operations/"+$scope.accounts[$scope.account].address+"?type=Transaction&p=0&number="+ (maxTxs+1)).then(function(r){
$http.get("https://api1.tzscan.io/v1/operations/"+$scope.accounts[$scope.account].address+"?type=Transaction&p=0&number="+ (maxTxs+1)).then(function(r){
if (r.status == 200 && r.data.length > 0){
if (r.data.length > maxTxs) {
r.data.splice(0,1);
r.data = r.data.slice(0, maxTxs);
$scope.moreTxs = true;
} else {
$scope.moreTxs = false;
}
var txs = [];
for(var i = r.data.length-1; i >= 0; i--){
for(var i = 0; i < r.data.length; i++){
for(var j = 0; j < r.data[i].type.operations.length; j++){
if (r.data[i].type.operations[j].kind != 'transaction' || r.data[i].type.operations[j].failed) continue;
txs.push({
Expand Down Expand Up @@ -687,7 +687,7 @@ app
//init
if (Storage.restored){
window.showLoader();
$http.get("https://api4.tzscan.io/v1/operations/"+$scope.accounts[0].address+"?type=Origination").then(function(r){
$http.get("https://api1.tzscan.io/v1/operations/"+$scope.accounts[0].address+"?type=Origination").then(function(r){
window.hideLoader();
if (r.status == 200 && r.data.length > 0){
SweetAlert.swal({
Expand Down Expand Up @@ -716,7 +716,9 @@ app
}
});
}
});
}).catch(function(e){
window.hideLoader();
});

if (Storage.ico) SweetAlert.swal(Lang.translate('awesome'), Lang.translate('ico_restore_success'), 'success');
Storage.restored = false;
Expand Down
2 changes: 1 addition & 1 deletion app/app/services/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ app.service('Lang', ["$sce", function($sce) {
],
_translations = {
"english" : {
"first_operation" : "This account hasn't been revealed yet, which means your next operation will incur an additional fee of 0.001150XTZ",
"first_operation" : "This account hasn't been revealed yet, which means your next operation will incur an additional fee of ~0.001300XTZ",
"error_please_enter_your_seed_words" : "Please enter your seed words",
"error_seed_words_not_valid" : "Your seed words are not valid - please check to ensure you are not missing a word/letter, and you haven't included an extra space/line break. All words must be seperated by a space.",
"error_enter_passphrase" : "Please enter your passphrase",
Expand Down
8 changes: 4 additions & 4 deletions app/app/views/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ <h1 class="balance">{{accountDetails.balance}} <a ng-click="refresh()"><i class=
<input ng-show="showCustom" type="number" class="form-control" ng-model="customFee">
<select ng-show="!showCustom" class="form-control" ng-model="fee" number-select>
<option value="1420">{{translate("low")}} - 1420μꜩ</option>
<option value="2000">{{translate("medium")}} - 1500μꜩ</option>
<option value="5000">{{translate("high")}} - 30000μꜩ</option>
<option value="5000">{{translate("medium")}} - 5000μꜩ</option>
<option value="30000">{{translate("high")}} - 30000μꜩ</option>
</select>
</div>
</div>
Expand Down Expand Up @@ -212,8 +212,8 @@ <h1 class="balance">{{accountDetails.balance}} <a ng-click="refresh()"><i class=
<input ng-show="showCustom" type="number" class="form-control" ng-model="customFee">
<select ng-show="!showCustom" class="form-control" ng-model="fee" number-select>
<option value="1420">{{translate("low")}} - 1420μꜩ</option>
<option value="2000">{{translate("medium")}} - 1500μꜩ</option>
<option value="5000">{{translate("high")}} - 30000μꜩ</option>
<option value="5000">{{translate("medium")}} - 5000μꜩ</option>
<option value="30000">{{translate("high")}} - 30000μꜩ</option>
</select>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/skin/js/eztz.min.js

Large diffs are not rendered by default.

0 comments on commit f04a150

Please sign in to comment.