Skip to content

Commit 21ed67c

Browse files
committed
fix: only internal function
1 parent 1de9673 commit 21ed67c

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

src/components/policyServer/index.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ import { isDefined } from '../../utils/util.js'
44
import { BaseFileObject } from '../../@types/fileObject.js'
55
import { OceanNode } from '../../OceanNode.js'
66

7-
export function attachNodeAddress(
8-
command: Record<string, any>,
9-
nodeAddress: string
10-
): Record<string, any> {
11-
return {
12-
...command,
13-
nodeAddress
14-
}
15-
}
16-
177
export class PolicyServer {
188
serverUrl: string
199
private apikey: string
@@ -27,7 +17,10 @@ export class PolicyServer {
2717
const node = OceanNode.getInstance()
2818
const keyManager = node.getKeyManager()
2919
const nodeAddress = keyManager.getEthWallet().address
30-
return attachNodeAddress(command, nodeAddress)
20+
return {
21+
...command,
22+
nodeAddress
23+
}
3124
}
3225

3326
private async askServer(command: any): Promise<PolicyServerResult> {

0 commit comments

Comments
 (0)