Skip to content

Commit

Permalink
Merge pull request #1355 from thibault-martinez/merge-develop-1.1-8
Browse files Browse the repository at this point in the history
Merge develop into 1.1
  • Loading branch information
thibault-martinez authored Sep 29, 2023
2 parents 9e1fb6a + 0f708f8 commit 35678d0
Show file tree
Hide file tree
Showing 6 changed files with 2,469 additions and 31 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ address.json
!**/tests/**/**.stronghold
.DS_Store
book


.venv*
12 changes: 3 additions & 9 deletions bindings/nodejs/examples/how_tos/alias/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ async function run() {
// May want to ensure the account is synced before sending a transaction.
let balance = await account.sync();

console.log(
`Aliases BEFORE (${balance.aliases.length}):\n`,
balance.aliases,
);
console.log(`Aliases BEFORE:\n`, balance.aliases);

// To sign a transaction we need to unlock stronghold.
await wallet.setStrongholdPassword(process.env.STRONGHOLD_PASSWORD);
Expand All @@ -59,14 +56,11 @@ async function run() {
transaction.transactionId,
);
console.log(
`Transaction included: ${process.env.EXPLORER_URL}/block/${blockId}`,
`Block included: ${process.env.EXPLORER_URL}/block/${blockId}`,
);

balance = await account.sync();
console.log(
`Aliases AFTER (${balance.aliases.length}):\n`,
balance.aliases,
);
console.log(`Aliases AFTER:\n`, balance.aliases);
} catch (error) {
console.log('Error: ', error);
}
Expand Down
Loading

0 comments on commit 35678d0

Please sign in to comment.