Skip to content
Snippets Groups Projects

add balance to accounts

Open poka requested to merge account-balance into main
Compare and Show latest version
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
+ 1
3
@@ -158,9 +158,7 @@ export class DataHandler {
ctx.log.info(
`New endowed account: ${endowed.address} received initial balance of ${endowed.amount} tokens`
);
const account = await this.getOrCreateAccount(ctx, endowed.address);
account.balance = endowed.amount;
this.data.accounts.set(endowed.address, account);
await this.updateAccountBalance(ctx, endowed.address, endowed.amount);
}
// Process dust lost accounts
Loading