Merge pull request #3122 from XRPLF/NFT_refactor

Refactor NFT code samples and update the tutorials and screenshots
This commit is contained in:
Dennis Dawson
2025-06-18 09:40:27 -07:00
committed by GitHub
44 changed files with 5526 additions and 3654 deletions

View File

@@ -32,8 +32,9 @@ async function getAccount() {
}
finally {
// Disconnect from the client
await client.disconnect();
}
if (client && client.isConnected()) {
await client.disconnect();
} }
} // End of getAccount()
async function getNewAccount1() {
@@ -78,8 +79,9 @@ async function getAccountFromSeed(my_seed) {
}
finally {
// Disconnect from the client
await client.disconnect();
}
if (client && client.isConnected()) {
await client.disconnect();
} }
} // End of getAccountFromSeed()
// *****************************************************
@@ -169,8 +171,9 @@ async function getXrpBalance() {
}
finally {
// Disconnect from the client
await client.disconnect();
}
if (client && client.isConnected()) {
await client.disconnect();
} }
} // End of getXrpBalance()
// *******************************************************
@@ -202,8 +205,9 @@ async function getTokenBalance() {
}
finally {
// Disconnect from the client
await client.disconnect();
}
if (client && client.isConnected()) {
await client.disconnect();
} }
} // End of getTokenBalance()
// *******************************************************