Skip to content

Commit 4d6ba7b

Browse files
authored
chore: update dash dependency (#28)
Also run fmt
1 parent d9078ae commit 4d6ba7b

File tree

3 files changed

+116
-111
lines changed

3 files changed

+116
-111
lines changed

1-Identities-and-Names/identity-transfer-credits.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const transferCredits = async () => {
2020

2121
const recipientId = process.env.RECIPIENT_ID; // Recipient's ID
2222
const recipientIdentity = await client.platform.identities.get(recipientId);
23-
console.log('Recipient identity balance before transfer: ', recipientIdentity.balance);
23+
console.log(
24+
'Recipient identity balance before transfer: ',
25+
recipientIdentity.balance,
26+
);
2427
const transferAmount = 1000; // Number of credits to transfer
2528

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

3437
transferCredits()
35-
.then((d) => console.log('Recipient identity balance after transfer: ', d.balance))
38+
.then((d) =>
39+
console.log('Recipient identity balance after transfer: ', d.balance),
40+
)
3641
.catch((e) => console.error('Something went wrong:\n', e))
3742
.finally(() => client.disconnect());

0 commit comments

Comments
 (0)