Skip to content

Commit

Permalink
Merge pull request #91 from Atralupus/fix/enable-initializer
Browse files Browse the repository at this point in the history
Enable initalizer
  • Loading branch information
Atralupus authored May 28, 2024
2 parents 8ee738c + ab07577 commit 9a574c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mimir.Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ headlessStateServiceOption.Value.JwtSecretKey is not null
config.EnableInitializing
);
});
// builder.Services.AddHostedService<Initializer>();
builder.Services.AddHostedService<Initializer>();

var host = builder.Build();
host.Run();
2 changes: 1 addition & 1 deletion Mimir.Worker/SnapshotInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ CancellationToken stoppingToken

if (currentAddress is string hex)
{
var stateData = handler.ConvertToStateData(value);
var stateData = handler.ConvertToStateData(new Address(currentAddress), value);
await _store.UpsertStateDataAsync(
stateData,
CollectionNames.CollectionMappings[accountAddress]
Expand Down

0 comments on commit 9a574c3

Please sign in to comment.