Skip to content

Commit

Permalink
chore: update dash dependency (#28)
Browse files Browse the repository at this point in the history
Also run fmt
  • Loading branch information
thephez authored Jan 10, 2024
1 parent d9078ae commit 4d6ba7b
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 111 deletions.
9 changes: 7 additions & 2 deletions 1-Identities-and-Names/identity-transfer-credits.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const transferCredits = async () => {

const recipientId = process.env.RECIPIENT_ID; // Recipient's ID
const recipientIdentity = await client.platform.identities.get(recipientId);
console.log('Recipient identity balance before transfer: ', recipientIdentity.balance);
console.log(
'Recipient identity balance before transfer: ',
recipientIdentity.balance,
);
const transferAmount = 1000; // Number of credits to transfer

await client.platform.identities.creditTransfer(
Expand All @@ -32,6 +35,8 @@ const transferCredits = async () => {
};

transferCredits()
.then((d) => console.log('Recipient identity balance after transfer: ', d.balance))
.then((d) =>
console.log('Recipient identity balance after transfer: ', d.balance),
)
.catch((e) => console.error('Something went wrong:\n', e))
.finally(() => client.disconnect());
Loading

0 comments on commit 4d6ba7b

Please sign in to comment.