datawriter returns hash
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "rjsvm",
|
"name": "rjsvm",
|
||||||
"version": "0.2.5",
|
"version": "0.3.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "rjsvm",
|
"name": "rjsvm",
|
||||||
"version": "0.2.5",
|
"version": "0.3.1",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rjsvm",
|
"name": "rjsvm",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "lib/src/main.js",
|
"main": "lib/src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export class Datawriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async callEndpoint(endpointName: string, parameter: any, fee?: number) {
|
async callEndpoint(endpointName: string, parameter: any, fee?: number): Promise<string> {
|
||||||
const xrpio: xrpIO = new xrpIO(this.config.xrpNode)
|
const xrpio: xrpIO = new xrpIO(this.config.xrpNode)
|
||||||
await xrpio.connect()
|
await xrpio.connect()
|
||||||
try{
|
try{
|
||||||
@@ -39,8 +39,9 @@ export class Datawriter {
|
|||||||
undefined,
|
undefined,
|
||||||
fee ? String(fee) : undefined
|
fee ? String(fee) : undefined
|
||||||
)
|
)
|
||||||
|
return hash
|
||||||
}catch(e){
|
}catch(e){
|
||||||
console.log(e)
|
throw e
|
||||||
}finally{
|
}finally{
|
||||||
await xrpio.disconnect()
|
await xrpio.disconnect()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user