From 3fe13f11710753461ed60682241325316cd874cd Mon Sep 17 00:00:00 2001 From: yxxyun Date: Wed, 25 Sep 2019 11:52:55 +0800 Subject: [PATCH] update ripple-lib --- package.json | 2 +- src/pages/transaction/send-ripple.vue | 2 +- src/wallet/coins/Ripple.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 239435a..ed2ab03 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "lokijs": "^1.5.5", "ripple-address-codec": "^2.0.1", "xrpl-tagged-address-codec": "^0.2.0", - "ripple-lib": "^1.2.4", + "ripple-lib": "^1.3.3", "stellar-sdk": "^0.11.0", "vant": "^1.4.3", "vee-validate": "^2.1.0-beta.11", diff --git a/src/pages/transaction/send-ripple.vue b/src/pages/transaction/send-ripple.vue index 3bfa6bd..962b089 100644 --- a/src/pages/transaction/send-ripple.vue +++ b/src/pages/transaction/send-ripple.vue @@ -142,7 +142,7 @@ 'form.receiveAddress' () { if (this.form.receiveAddress) { if (this.$wallet.isTagAddress(this.form.receiveAddress)){ - var decode=this.$wallet.decodeTagAddress(this.form.receiveAddress); + let decode=this.$wallet.decodeTagAddress(this.form.receiveAddress); this.receiveAddress=decode.account; this.tag=decode.tag; this.tagAddress=true; diff --git a/src/wallet/coins/Ripple.js b/src/wallet/coins/Ripple.js index 9eab940..2c97156 100644 --- a/src/wallet/coins/Ripple.js +++ b/src/wallet/coins/Ripple.js @@ -279,8 +279,8 @@ class RippleWallet{ isTagAddress (address) { try{ Decode(address); - return true; }catch (e) {return false;} + return true; } decodeTagAddress (address) {