Permalink
Browse files

Parsing of nano_ addresses enabled

  • Loading branch information...
jaimehgb committed May 10, 2018
1 parent db36775 commit 6e7c263750c0118191d431f0f891e6b140bdda3d
Showing with 4 additions and 3 deletions.
  1. +1 −1 package.json
  2. +3 −2 resources/assets/js/custom.js
@@ -24,7 +24,7 @@
"jquery-toast-plugin": "^1.3.2",
"jquery.easing": "^1.4.1",
"laravel-elixir": "^6.0.0-17",
"rai-wallet": "^0.3.0",
"rai-wallet": "^0.3.3",
"scrollreveal": "^3.3.6"
}
}
@@ -1264,7 +1264,7 @@ $(document).ready(function(){
// check address
var to = $('#to').val();
if(to.length != 64) // alias or invalid address
if(to.length != 64 && to.length != 65) // alias or invalid address
{
to = $('#to').attr('data-alias-address').split(';')[1];
}
@@ -1325,7 +1325,7 @@ $(document).ready(function(){
$('#alias_address').css('display', 'none');
var to = $('#to').val().replace(' ', '');
if(to.length != 64) // its not an address
if(to.length != 64 && to.length != 65) // its not an address
{
aliasExists(to, function(exists){
if(exists === false)
@@ -1346,6 +1346,7 @@ $(document).ready(function(){
}
else
{
console.log(functions.parseXRBAccount(to));
if(functions.parseXRBAccount(to))
{
$('#to').css('color', 'initial');

0 comments on commit 6e7c263

Please sign in to comment.