Shapeshift, return address should be verified with the coin out
This commit is contained in:
parent
a8e5c212f0
commit
b5cd9faca7
1 changed files with 2 additions and 1 deletions
|
|
@ -63,6 +63,7 @@ angular
|
||||||
} else if (amount > service.marketData.maxLimit) {
|
} else if (amount > service.marketData.maxLimit) {
|
||||||
cb(new Error(gettextCatalog.getString('Amount is above the limit')));
|
cb(new Error(gettextCatalog.getString('Amount is above the limit')));
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Init service data
|
// Init service data
|
||||||
service.withdrawalAddress = withdrawalAddress;
|
service.withdrawalAddress = withdrawalAddress;
|
||||||
service.returnAddress = returnAddress;
|
service.returnAddress = returnAddress;
|
||||||
|
|
@ -72,7 +73,7 @@ angular
|
||||||
|
|
||||||
// Check the address
|
// Check the address
|
||||||
shapeshiftApiService
|
shapeshiftApiService
|
||||||
.ValidateAddress(withdrawalAddress, coinOut)
|
.ValidateAddress(returnAddress, coinOut)
|
||||||
.then(function onSuccess(response) {
|
.then(function onSuccess(response) {
|
||||||
if (response && response.isvalid) {
|
if (response && response.isvalid) {
|
||||||
// Prepare the transaction shapeshift side
|
// Prepare the transaction shapeshift side
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue