diff --git a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs index 1d5743db..7f1fd6df 100644 --- a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs +++ b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs @@ -94,6 +94,7 @@ protected override void OnAddToStorageBatch(StorageBatch storageBatch, SyncBlock FromAddress = receipt.From, ToAddress = receipt.To, BlockIndex = item.BlockInfo.Height, + BlockHash = item.BlockInfo.Hash, TransactionId = receipt.TransactionHash, Success = receipt.Success, Error = receipt.Error, diff --git a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs index fbfb2652..23d22536 100644 --- a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs +++ b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs @@ -5,7 +5,7 @@ namespace Blockcore.Indexer.Cirrus.Storage.Mongo.SmartContracts.NonFungibleToken; -public class ClaimOwnershipLogReader : ILogReader +public class ClaimOwnershipLogReader : ILogReader { public bool CanReadLogForMethodType(string methodType) => methodType.Equals("ClaimOwnership"); diff --git a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs index 68364980..f45dbcf5 100644 --- a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs +++ b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs @@ -21,6 +21,11 @@ public class CirrusContractTable /// public long BlockIndex { get; set; } + /// + /// Hash of the block that this was confirmed in + /// + public string BlockHash { get; set; } + /// /// The type of contract (this is normally taken from the assembly metadata). ///