File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ const ToAddrBox = ({
170
170
) ;
171
171
} ;
172
172
173
- function getSendManyJSON ( sendPageState : SendPageState ) : [ ] {
173
+ function getSendManyJSON ( sendPageState : SendPageState , info : Info ) : [ ] {
174
174
const json = [ ] ;
175
175
json . push ( sendPageState . fromaddr ) ;
176
176
json . push (
@@ -185,7 +185,7 @@ function getSendManyJSON(sendPageState: SendPageState): [] {
185
185
} )
186
186
) ;
187
187
json . push ( 1 ) ; // minconf = 1
188
- json . push ( Utils . getDefaultFee ( ) ) ; // Control the default fee as well.
188
+ json . push ( Utils . getDefaultFee ( info . latestBlock ) ) ; // Control the default fee as well.
189
189
190
190
console . log ( 'Sending:' ) ;
191
191
console . log ( json ) ;
@@ -246,7 +246,7 @@ const ConfirmModalInternal = ({
246
246
247
247
// Then send the Tx async
248
248
( async ( ) => {
249
- const sendJson = getSendManyJSON ( sendPageState ) ;
249
+ const sendJson = getSendManyJSON ( sendPageState , info ) ;
250
250
let success = false ;
251
251
252
252
try {
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export default class Utils {
111
111
}
112
112
113
113
static getDefaultFee ( height : number ) : number {
114
- if ( height > 1046400 ) {
114
+ if ( height >= 1080000 ) {
115
115
return 0.00001 ;
116
116
} else {
117
117
return 0.0001 ;
You can’t perform that action at this time.
0 commit comments