Browse Source
Merge pull request #797 from meriadec/fix-avoid-libcore-crash-on-recipient
Prevent check recipient valid if empty
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/bridge/LibcoreBridge.js
|
@ -52,6 +52,7 @@ const isRecipientValid = (currency, recipient) => { |
|
|
const key = `${currency.id}_${recipient}` |
|
|
const key = `${currency.id}_${recipient}` |
|
|
let promise = recipientValidLRU.get(key) |
|
|
let promise = recipientValidLRU.get(key) |
|
|
if (promise) return promise |
|
|
if (promise) return promise |
|
|
|
|
|
if (!recipient) return Promise.resolve(false) |
|
|
promise = libcoreValidAddress |
|
|
promise = libcoreValidAddress |
|
|
.send({ |
|
|
.send({ |
|
|
address: recipient, |
|
|
address: recipient, |
|
|