Skip to content

Commit 804423e

Browse files
committed
enables marketplace access for codex node used in autoclient
1 parent 92a5a1e commit 804423e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ProjectPlugins/CodexClient/CodexInstance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public CodexInstance(string name, string imageName, DateTime startUtc, Address d
3737
public EthAccount? EthAccount { get; }
3838
public Address? MetricsEndpoint { get; }
3939

40-
public static ICodexInstance CreateFromApiEndpoint(string name, Address apiEndpoint)
40+
public static ICodexInstance CreateFromApiEndpoint(string name, Address apiEndpoint, EthAccount? ethAccount = null)
4141
{
4242
return new CodexInstance(
4343
name,
@@ -46,7 +46,7 @@ public static ICodexInstance CreateFromApiEndpoint(string name, Address apiEndpo
4646
discoveryEndpoint: Address.Empty(),
4747
apiEndpoint: apiEndpoint,
4848
listenEndpoint: Address.Empty(),
49-
ethAccount: null,
49+
ethAccount: ethAccount,
5050
metricsEndpoint: null
5151
);
5252
}

Tools/AutoClient/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using AutoClient.Modes;
44
using AutoClient.Modes.FolderStore;
55
using CodexClient;
6+
using GethPlugin;
67
using Utils;
78

89
public class Program
@@ -100,7 +101,7 @@ private CodexWrapper CreateCodexWrapper(string endpoint)
100101
port: port
101102
);
102103

103-
var instance = CodexInstance.CreateFromApiEndpoint("ac", address);
104+
var instance = CodexInstance.CreateFromApiEndpoint("ac", address, EthAccountGenerator.GenerateNew());
104105
var node = app.CodexNodeFactory.CreateCodexNode(instance);
105106
return new CodexWrapper(app, node);
106107
}

0 commit comments

Comments
 (0)