File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ import * as transactionUtils from './transaction/utils'
69
69
import * as schemaValidator from './common/schema-validator'
70
70
import { getServerInfo , getFee } from './common/serverinfo'
71
71
import { clamp } from './ledger/utils'
72
- import { Instructions } from './transaction/types'
72
+ import { Instructions , Prepare } from './transaction/types'
73
73
74
74
export type APIOptions = {
75
75
server ?: string ,
@@ -205,7 +205,8 @@ class RippleAPI extends EventEmitter {
205
205
*
206
206
* You can later submit the transaction with `submit()`.
207
207
*/
208
- async prepareTransaction ( txJSON : object , instructions : Instructions = { } ) {
208
+ async prepareTransaction ( txJSON : object , instructions : Instructions = { } ) :
209
+ Promise < Prepare > {
209
210
return transactionUtils . prepareTransaction ( txJSON , this , instructions )
210
211
}
211
212
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ export type Instructions = {
22
22
export type Prepare = {
23
23
txJSON : string ,
24
24
instructions : {
25
- fee : string ,
26
- sequence : number ,
27
- maxLedgerVersion ?: number
28
- }
25
+ fee : string ,
26
+ sequence : number ,
27
+ maxLedgerVersion ?: number
28
+ }
29
29
}
30
30
31
31
export type Submit = {
You can’t perform that action at this time.
0 commit comments