@@ -148,7 +148,7 @@ Xrp.prototype.supplementGenerateWallet = function(walletParams, keychains) {
148148 return self . getFeeInfo ( )
149149 . then ( function ( feeInfo ) {
150150 // TODO: get recommended fee from server instead of doing number magic
151- const fee = feeInfo . xrpOpenLedgerFee ;
151+ const fee = new BigNumber ( feeInfo . xrpOpenLedgerFee ) . times ( 1.5 ) . toFixed ( 0 ) ;
152152 const ledgerVersion = feeInfo . height ;
153153
154154 // configure multisigners
@@ -177,8 +177,8 @@ Xrp.prototype.supplementGenerateWallet = function(walletParams, keychains) {
177177 }
178178 ] ,
179179 Flags : 2147483648 ,
180- LastLedgerSequence : ledgerVersion + 10 ,
181- Fee : ` ${ fee } ` ,
180+ // LastLedgerSequence: ledgerVersion + 10,
181+ Fee : fee ,
182182 Sequence : 1
183183 } ;
184184 signedMultisigAssignmentTx = rippleLib . signWithPrivateKey ( JSON . stringify ( multisigAssignmentTx ) , privateKey . toString ( 'hex' ) ) ;
@@ -189,8 +189,8 @@ Xrp.prototype.supplementGenerateWallet = function(walletParams, keychains) {
189189 Account : rootAddress ,
190190 SetFlag : 1 ,
191191 Flags : 2147483648 ,
192- LastLedgerSequence : ledgerVersion + 10 ,
193- Fee : ` ${ fee } ` ,
192+ // LastLedgerSequence: ledgerVersion + 10,
193+ Fee : fee ,
194194 Sequence : 2
195195 } ;
196196 signedDestinationTagTx = rippleLib . signWithPrivateKey ( JSON . stringify ( destinationTagTx ) , privateKey . toString ( 'hex' ) ) ;
@@ -201,8 +201,8 @@ Xrp.prototype.supplementGenerateWallet = function(walletParams, keychains) {
201201 Account : rootAddress ,
202202 SetFlag : 4 ,
203203 Flags : 2147483648 ,
204- LastLedgerSequence : ledgerVersion + 10 ,
205- Fee : ` ${ fee } ` ,
204+ // LastLedgerSequence: ledgerVersion + 10,
205+ Fee : fee ,
206206 Sequence : 3
207207 } ;
208208 signedMasterDeactivationTx = rippleLib . signWithPrivateKey ( JSON . stringify ( masterDeactivationTx ) , privateKey . toString ( 'hex' ) ) ;
0 commit comments