Update with SME review comments

This commit is contained in:
Maria Shodunke
2025-04-17 11:07:19 +01:00
parent 0f9338c0b9
commit 2bcb9f67d3
6 changed files with 33 additions and 44 deletions

View File

@@ -4,7 +4,7 @@ import dotenv from "dotenv";
import inquirer from "inquirer";
import { Client, Wallet } from "xrpl";
import { lookUpCredentials } from "./look_up_credentials.js";
import { decodeHex } from "./decode_hex.js";
import { hexToString } from "@xrplf/isomorphic/dist/utils/index.js";
const XRPL_SERVER = "wss://s.devnet.rippletest.net:51233"
@@ -41,7 +41,7 @@ async function main() {
);
const choices = pendingCredentials.map((cred, i) => ({
name: `${i+1}) '${decodeHex(cred.CredentialType)}' issued by ${cred.Issuer}`,
name: `${i+1}) '${hexToString(cred.CredentialType)}' issued by ${cred.Issuer}`,
value: i,
}));
choices.unshift({ name: "0) No, quit.", value: -1 });