mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
JS: Fix request_ripple_balance() setting issuer.
This commit is contained in:
@@ -1164,11 +1164,11 @@ Remote.prototype.request_ripple_balance = function (account, issuer, currency, c
|
||||
var accountHigh = UInt160.from_json(account).equals(highLimit.issuer());
|
||||
|
||||
request.emit('ripple_state', {
|
||||
'account_balance' : ( accountHigh ? balance.negate() : balance).parse_issuer(account),
|
||||
'peer_balance' : (!accountHigh ? balance.negate() : balance).parse_issuer(issuer),
|
||||
'account_balance' : ( accountHigh ? balance.negate() : balance.clone()).parse_issuer(account),
|
||||
'peer_balance' : (!accountHigh ? balance.negate() : balance.clone()).parse_issuer(issuer),
|
||||
|
||||
'account_limit' : ( accountHigh ? highLimit : lowLimit).parse_issuer(issuer),
|
||||
'peer_limit' : (!accountHigh ? highLimit : lowLimit).parse_issuer(account),
|
||||
'account_limit' : ( accountHigh ? highLimit : lowLimit).clone().parse_issuer(issuer),
|
||||
'peer_limit' : (!accountHigh ? highLimit : lowLimit).clone().parse_issuer(account),
|
||||
|
||||
'account_quality_in' : ( accountHigh ? node.HighQualityIn : node.LowQualityIn),
|
||||
'peer_quality_in' : (!accountHigh ? node.HighQualityIn : node.LowQualityIn),
|
||||
|
||||
@@ -372,7 +372,7 @@ buster.testCase("Sending future", {
|
||||
.submit();
|
||||
},
|
||||
function (callback) {
|
||||
self.what = "Verify balance from alice's pov.";
|
||||
self.what = "Verify balance from alice's pov: 1";
|
||||
|
||||
self.remote.request_ripple_balance("alice", "bob", "USD", 'CURRENT')
|
||||
.once('ripple_state', function (m) {
|
||||
@@ -397,7 +397,7 @@ buster.testCase("Sending future", {
|
||||
.submit();
|
||||
},
|
||||
function (callback) {
|
||||
self.what = "Verify balance from alice's pov.";
|
||||
self.what = "Verify balance from alice's pov: 2";
|
||||
|
||||
self.remote.request_ripple_balance("alice", "bob", "USD", 'CURRENT')
|
||||
.once('ripple_state', function (m) {
|
||||
@@ -422,7 +422,7 @@ buster.testCase("Sending future", {
|
||||
.submit();
|
||||
},
|
||||
function (callback) {
|
||||
self.what = "Verify balance from alice's pov.";
|
||||
self.what = "Verify balance from alice's pov: 3";
|
||||
|
||||
self.remote.request_ripple_balance("alice", "bob", "USD", 'CURRENT')
|
||||
.once('ripple_state', function (m) {
|
||||
@@ -445,7 +445,7 @@ buster.testCase("Sending future", {
|
||||
.submit();
|
||||
},
|
||||
function (callback) {
|
||||
self.what = "Verify balance from alice's pov.";
|
||||
self.what = "Verify balance from alice's pov: 4";
|
||||
|
||||
self.remote.request_ripple_balance("alice", "bob", "USD", 'CURRENT')
|
||||
.once('ripple_state', function (m) {
|
||||
@@ -467,7 +467,7 @@ buster.testCase("Sending future", {
|
||||
// .ledger_accept();
|
||||
// },
|
||||
// function (callback) {
|
||||
// self.what = "Verify balance from alice's pov.";
|
||||
// self.what = "Verify balance from alice's pov: 5";
|
||||
//
|
||||
// self.remote.request_ripple_balance("alice", "bob", "USD", 'CURRENT')
|
||||
// .once('ripple_state', function (m) {
|
||||
|
||||
Reference in New Issue
Block a user