@net-protocol/cli 0.1.41 → 0.1.42
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/dist/cli/index.mjs
CHANGED
|
@@ -2369,6 +2369,7 @@ async function executeProfileGet(options) {
|
|
|
2369
2369
|
}
|
|
2370
2370
|
let xUsername;
|
|
2371
2371
|
let bio;
|
|
2372
|
+
let displayName;
|
|
2372
2373
|
let tokenAddress;
|
|
2373
2374
|
try {
|
|
2374
2375
|
const metadataResult = await client.readStorageData({
|
|
@@ -2379,6 +2380,7 @@ async function executeProfileGet(options) {
|
|
|
2379
2380
|
const metadata = parseProfileMetadata(metadataResult.data);
|
|
2380
2381
|
xUsername = metadata?.x_username;
|
|
2381
2382
|
bio = metadata?.bio;
|
|
2383
|
+
displayName = metadata?.display_name;
|
|
2382
2384
|
tokenAddress = metadata?.token_address;
|
|
2383
2385
|
}
|
|
2384
2386
|
} catch (error) {
|
|
@@ -2419,12 +2421,13 @@ async function executeProfileGet(options) {
|
|
|
2419
2421
|
throw error;
|
|
2420
2422
|
}
|
|
2421
2423
|
}
|
|
2422
|
-
const hasProfile = profilePicture || xUsername || bio || tokenAddress || canvasSize || cssSize;
|
|
2424
|
+
const hasProfile = profilePicture || xUsername || bio || displayName || tokenAddress || canvasSize || cssSize;
|
|
2423
2425
|
if (options.json) {
|
|
2424
2426
|
const output = {
|
|
2425
2427
|
address: options.address,
|
|
2426
2428
|
chainId: readOnlyOptions.chainId,
|
|
2427
2429
|
profilePicture: profilePicture || null,
|
|
2430
|
+
displayName: displayName || null,
|
|
2428
2431
|
xUsername: xUsername || null,
|
|
2429
2432
|
bio: bio || null,
|
|
2430
2433
|
tokenAddress: tokenAddress || null,
|
|
@@ -2438,6 +2441,9 @@ async function executeProfileGet(options) {
|
|
|
2438
2441
|
console.log(chalk4.white.bold("\nProfile:\n"));
|
|
2439
2442
|
console.log(` ${chalk4.cyan("Address:")} ${options.address}`);
|
|
2440
2443
|
console.log(` ${chalk4.cyan("Chain ID:")} ${readOnlyOptions.chainId}`);
|
|
2444
|
+
console.log(
|
|
2445
|
+
` ${chalk4.cyan("Display Name:")} ${displayName || chalk4.gray("(not set)")}`
|
|
2446
|
+
);
|
|
2441
2447
|
console.log(
|
|
2442
2448
|
` ${chalk4.cyan("Profile Picture:")} ${profilePicture || chalk4.gray("(not set)")}`
|
|
2443
2449
|
);
|