File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
const RippleAPI = require ( '../../src' ) . RippleAPI ; // require('ripple-lib')
3
3
4
- const api = new RippleAPI ( { servers : [ 'wss://s1.ripple.com:443' ] } ) ;
4
+ const api = new RippleAPI ( { server : 'wss://s1.ripple.com:443' } ) ;
5
5
const address = 'r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV' ;
6
6
7
7
api . connect ( ) . then ( ( ) => {
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ const RippleAPI = require('../../src').RippleAPI; // require('ripple-lib')
4
4
const address = 'INSERT ADDRESS HERE' ;
5
5
const secret = 'INSERT SECRET HERE' ;
6
6
7
- const api = new RippleAPI ( { servers : [ 'wss://s1.ripple.com:443' ] } ) ;
7
+ const api = new RippleAPI ( { server : 'wss://s1.ripple.com:443' } ) ;
8
8
const instructions = { maxLedgerVersionOffset : 5 } ;
9
9
10
10
const payment = {
11
11
source : {
12
12
address : address ,
13
- amount : {
13
+ maxAmount : {
14
14
value : '0.01' ,
15
15
currency : 'XRP'
16
16
}
You can’t perform that action at this time.
0 commit comments