evernode-js-client 0.6.45 → 0.6.47
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 -6
- package/package.json +1 -1
package/index.js
CHANGED
@@ -60516,12 +60516,13 @@ class BaseEvernodeClient {
|
|
60516
60516
|
}
|
60517
60517
|
|
60518
60518
|
const hostRepAcc = new XrplAccount(hostReputationAddress, null, { xrplApi: this.xrplApi });
|
60519
|
-
const [
|
60520
|
-
hostRepAcc.
|
60519
|
+
const [wl, rep] = await Promise.all([
|
60520
|
+
hostRepAcc.getWalletLocator(),
|
60521
60521
|
hostRepAcc.getDomain()]);
|
60522
60522
|
|
60523
|
-
if (
|
60524
|
-
const
|
60523
|
+
if (wl && rep && rep.length > 0) {
|
60524
|
+
const hostReputationAccId = wl.slice(0, 20);
|
60525
|
+
const hostAddress = codec.encodeAccountID(Buffer.from(hostReputationAccId, 'hex'));
|
60525
60526
|
const hostAcc = new XrplAccount(hostAddress, null, { xrplApi: this.xrplApi });
|
60526
60527
|
|
60527
60528
|
const repBuf = Buffer.from(rep, 'hex');
|
@@ -60573,7 +60574,7 @@ class BaseEvernodeClient {
|
|
60573
60574
|
if (!ledgerEntry)
|
60574
60575
|
throw `No hook exists with the specified ${hook} hook hash.`;
|
60575
60576
|
else
|
60576
|
-
keylets.push(HookHelpers.getKeylet('HOOK_DEFINITION',index));
|
60577
|
+
keylets.push(HookHelpers.getKeylet('HOOK_DEFINITION', index));
|
60577
60578
|
}
|
60578
60579
|
|
60579
60580
|
const uniqueId = StateHelpers.getNewHookCandidateId(hashesBuf);
|
@@ -61169,7 +61170,7 @@ class HostClient extends BaseEvernodeClient {
|
|
61169
61170
|
async setReputationAcc(reputationAddress = null, reputationSecret = null) {
|
61170
61171
|
let hostReputationAccId;
|
61171
61172
|
if (!reputationAddress && !reputationSecret) {
|
61172
|
-
hostReputationAccId = (await this.xrplAcc.getWalletLocator())
|
61173
|
+
hostReputationAccId = (await this.xrplAcc.getWalletLocator())?.slice(0, 40);
|
61173
61174
|
if (hostReputationAccId)
|
61174
61175
|
reputationAddress = codec.encodeAccountID(Buffer.from(hostReputationAccId, 'hex'));
|
61175
61176
|
}
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
],
|
7
7
|
"homepage": "https://github.com/HotPocketDev/evernode-js-client",
|
8
8
|
"license": "SEE LICENSE IN https://raw.githubusercontent.com/EvernodeXRPL/evernode-resources/main/license/evernode-license.pdf",
|
9
|
-
"version": "0.6.
|
9
|
+
"version": "0.6.47",
|
10
10
|
"dependencies": {
|
11
11
|
"elliptic": "6.5.4",
|
12
12
|
"libsodium-wrappers": "0.7.10",
|