Skip to content

Commit

Permalink
fix typo (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony authored Dec 16, 2024
1 parent 4c9a1cd commit 579a879
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public AngorMongoData(ILogger<AngorMongoDb> dbLogger, SyncConnection connection,
return new ProjectIndexerData
{
FounderKey = project.FounderKey,
NostrEventId = project.NosrtEventId,
NostrEventId = project.NostrEventId,
ProjectIdentifier = project.AngorKey,
TrxId = project.TransactionId,
TotalInvestmentsCount = total,
Expand Down Expand Up @@ -236,7 +236,7 @@ public async Task<QueryResult<ProjectIndexerData>> GetProjectsAsync(int? offset,
Items = projects.Select(_ => new ProjectIndexerData
{
FounderKey = _.FounderKey,
NostrEventId =_.NosrtEventId,
NostrEventId =_.NostrEventId,
ProjectIdentifier = _.AngorKey,
TrxId = _.TransactionId,
CreatedOnBlock = _.BlockIndex
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class Project
public string AngorKey { get; set; }
public string FounderKey { get; set; }

public string NosrtEventId { get; set; }
public string NostrEventId { get; set; }
public string AngorKeyScriptHex { get; set; }
public long BlockIndex { get; set; }
public string TransactionId { get; set; } //TODO check if this should be a lookup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public override async Task<bool> OnExecute()
AngorKeyScriptHex = angorKey.WitHash.ScriptPubKey.ToHex(),
BlockIndex = output.BlockIndex,
FounderKey = parsedData.FounderPubKey.ToHex(),
NosrtEventId = parsedData.keyType == 1 ? parsedData.NostrEventId : string.Empty,
NostrEventId = parsedData.keyType == 1 ? parsedData.NostrEventId : string.Empty,
AddressOnFeeOutput = angorFeeOutput.Address
};
}
Expand Down

0 comments on commit 579a879

Please sign in to comment.