Skip to content

Commit

Permalink
return node client in refresh node client
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Jan 8, 2025
1 parent 572b581 commit cf62ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/node/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1328,8 +1328,7 @@ export class NodeCommandTasks {
self.logger.info(`nodeId: ${nodeId}, config.newAccountNumber: ${config.newAccountNumber}`);

if (config.existingNodeAliases.length > 1) {
await self.accountManager.refreshNodeClient(config.namespace, config.nodeAlias);
config.nodeClient = await this.accountManager.loadNodeClient(config.namespace);
config.nodeClient = await self.accountManager.refreshNodeClient(config.namespace, config.nodeAlias);
}

try {
Expand Down
1 change: 1 addition & 0 deletions src/core/account_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class AccountManager {
treasuryAccountInfo.privateKey,
skipNodeAlias,
);
return this._nodeClient;
}

/**
Expand Down

0 comments on commit cf62ae0

Please sign in to comment.