Skip to content

Commit 5d5cf86

Browse files
author
Chris Clark
committed
Fix samples
1 parent dc24f6a commit 5d5cf86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/samples/balances.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const RippleAPI = require('../../src').RippleAPI; // require('ripple-lib')
33

4-
const api = new RippleAPI({servers: ['wss://s1.ripple.com:443']});
4+
const api = new RippleAPI({server: 'wss://s1.ripple.com:443'});
55
const address = 'r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV';
66

77
api.connect().then(() => {

docs/samples/payment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const RippleAPI = require('../../src').RippleAPI; // require('ripple-lib')
44
const address = 'INSERT ADDRESS HERE';
55
const secret = 'INSERT SECRET HERE';
66

7-
const api = new RippleAPI({servers: ['wss://s1.ripple.com:443']});
7+
const api = new RippleAPI({server: 'wss://s1.ripple.com:443'});
88
const instructions = {maxLedgerVersionOffset: 5};
99

1010
const payment = {
1111
source: {
1212
address: address,
13-
amount: {
13+
maxAmount: {
1414
value: '0.01',
1515
currency: 'XRP'
1616
}

0 commit comments

Comments
 (0)