mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 23:55:49 +00:00
Add requestGatewayBalances() to core
This commit is contained in:
@@ -1966,6 +1966,22 @@ describe('Remote', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it.only('Construct gateway_balances request', function() {
|
||||
const request = remote.requestGatewayBalances({
|
||||
account: 'rGr9PjmVe7MqEXTSbd3njhgJc2s5vpHV54',
|
||||
hotwallet: 'rwxBjBC9fPzyQ9GgPZw6YYLNeRTSx5',
|
||||
strict: true
|
||||
});
|
||||
|
||||
assert.deepEqual(request.message, {
|
||||
command: 'gateway_balances',
|
||||
id: undefined,
|
||||
account: 'rGr9PjmVe7MqEXTSbd3njhgJc2s5vpHV54',
|
||||
hotwallet: 'rwxBjBC9fPzyQ9GgPZw6YYLNeRTSx5',
|
||||
strict: true
|
||||
});
|
||||
});
|
||||
|
||||
it('Construct Payment transaction', function() {
|
||||
const tx = remote.createTransaction('Payment', {
|
||||
account: TX_JSON.Account,
|
||||
|
||||
Reference in New Issue
Block a user