Skip to content

Commit

Permalink
Fix samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Clark committed Nov 25, 2015
1 parent dc24f6a commit 5d5cf86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/samples/balances.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const RippleAPI = require('../../src').RippleAPI; // require('ripple-lib')

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

api.connect().then(() => {
Expand Down
4 changes: 2 additions & 2 deletions docs/samples/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ const RippleAPI = require('../../src').RippleAPI; // require('ripple-lib')
const address = 'INSERT ADDRESS HERE';
const secret = 'INSERT SECRET HERE';

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

const payment = {
source: {
address: address,
amount: {
maxAmount: {
value: '0.01',
currency: 'XRP'
}
Expand Down

0 comments on commit 5d5cf86

Please sign in to comment.