weavedb-node-client 0.23.2 → 0.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -114,6 +114,13 @@ class SDK extends Base {
|
|
|
114
114
|
try {
|
|
115
115
|
const result =
|
|
116
116
|
response.result === "" ? null : JSON.parse(response.result)
|
|
117
|
+
if (!isNil(result?.result?.transaction?.id)) {
|
|
118
|
+
result.getResult = async () =>
|
|
119
|
+
await this.node({
|
|
120
|
+
op: "tx_result",
|
|
121
|
+
txid: result?.result?.transaction?.id,
|
|
122
|
+
})
|
|
123
|
+
}
|
|
117
124
|
ret({ result, err: null })
|
|
118
125
|
} catch (e) {
|
|
119
126
|
ret({ result: null, err: e })
|