Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[FIX] Send: check address (RT-3510)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdarkdragon committed Aug 25, 2015
1 parent 521c020 commit aa37a3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/directives/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ module.directive('rpDest', function ($timeout, $parse) {
var strippedValue = webutil.stripRippleAddress(value);
var address = ripple.UInt160.from_json(strippedValue);

if (typeof strippedValue !== 'string'
|| (strippedValue.length && strippedValue[0] !== 'r')) {
address = ripple.UInt160.from_json();
}

ctrl.rpDestType = null;

if (attr.rpDestAddress && address.is_valid()) {
Expand Down

0 comments on commit aa37a3a

Please sign in to comment.