|
@@ -18,7 +18,7 @@ export class Datawriter {
|
18
|
18
|
}
|
19
|
19
|
|
20
|
20
|
|
21
|
|
- async callEndpoint(endpointName: string, parameter: any, fee?: number) {
|
|
21
|
+ async callEndpoint(endpointName: string, parameter: any, fee?: number): Promise<string> {
|
22
|
22
|
const xrpio: xrpIO = new xrpIO(this.config.xrpNode)
|
23
|
23
|
await xrpio.connect()
|
24
|
24
|
try{
|
|
@@ -39,8 +39,9 @@ export class Datawriter {
|
39
|
39
|
undefined,
|
40
|
40
|
fee ? String(fee) : undefined
|
41
|
41
|
)
|
|
42
|
+ return hash
|
42
|
43
|
}catch(e){
|
43
|
|
- console.log(e)
|
|
44
|
+ throw e
|
44
|
45
|
}finally{
|
45
|
46
|
await xrpio.disconnect()
|
46
|
47
|
}
|