Skip to content

Commit

Permalink
Revert "Revert "Blockhash property added (#174)" (#177)" (#178)
Browse files Browse the repository at this point in the history
This reverts commit 0ac0541.
  • Loading branch information
YakupIpek authored Dec 6, 2022
1 parent 0ac0541 commit 4835f90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Blockcore.Indexer.Cirrus.Storage.Mongo.SmartContracts.NonFungibleToken;

public class ClaimOwnershipLogReader : ILogReader<NonFungibleTokenContractTable, Types.NonFungibleTokenTable>
public class ClaimOwnershipLogReader : ILogReader<NonFungibleTokenContractTable, NonFungibleTokenTable>
{
public bool CanReadLogForMethodType(string methodType) => methodType.Equals("ClaimOwnership");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public class CirrusContractTable
/// </summary>
public long BlockIndex { get; set; }

/// <summary>
/// Hash of the block that this was confirmed in
/// </summary>
public string BlockHash { get; set; }

/// <summary>
/// The type of contract (this is normally taken from the assembly metadata).
/// </summary>
Expand Down

0 comments on commit 4835f90

Please sign in to comment.