File tree Expand file tree Collapse file tree
src/components/policyServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,16 +4,6 @@ import { isDefined } from '../../utils/util.js'
44import { BaseFileObject } from '../../@types/fileObject.js'
55import { 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-
177export 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 > {
You can’t perform that action at this time.
0 commit comments