Skip to content

Commit d122838

Browse files
committed
fix: make getCoreBalance/getEvmBalance public on ServerManager
Both methods are called by the accounts route (/fund polling loop) which accesses them via the public manager handle. TypeScript correctly rejected the private access with TS2341 errors, breaking the CI type-check job.
1 parent d54af08 commit d122838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/devnode/src/server-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ export class ServerManager {
10331033
/**
10341034
* Check Core Space balance
10351035
*/
1036-
private async getCoreBalance(address: string): Promise<string> {
1036+
async getCoreBalance(address: string): Promise<string> {
10371037
const { createPublicClient, http, formatCFX } = await import('cive');
10381038

10391039
const publicClient = createPublicClient({
@@ -1071,7 +1071,7 @@ export class ServerManager {
10711071
/**
10721072
* Check eSpace balance
10731073
*/
1074-
private async getEvmBalance(address: string): Promise<string> {
1074+
async getEvmBalance(address: string): Promise<string> {
10751075
const { createPublicClient, http, formatEther } = await import('viem');
10761076

10771077
const publicClient = createPublicClient({

0 commit comments

Comments
 (0)