Skip to content

Commit

Permalink
EpicChain Core - EpicChain Lab's
Browse files Browse the repository at this point in the history
  • Loading branch information
xmoohad committed Nov 19, 2024
1 parent 008061b commit 5f45126
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/EpicChain.Plugins.ApplicationLogs.Tests/UT_LogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ public async Task Test_Commands()
Assert.Equal(log.Notifications[1].State[2], 50000000);
}

List<(BlockchainEventModel eventLog, UInt256 txHash)> neoLogs = _EpicChainSystemFixture.logReader._epicchainstore.GetContractLog(EpicChain.EpicChain.Hash, TriggerType.Application).ToList();
Assert.Equal(neoLogs.Count, 1);
Assert.Equal(neoLogs[0].txHash, _EpicChainSystemFixture.txs[0].Hash);
Assert.Equal(neoLogs[0].eventLog.EventName, "Transfer");
Assert.Equal(neoLogs[0].eventLog.ScriptHash, EpicChain.EpicChain.Hash);
Assert.Equal(neoLogs[0].eventLog.State[2], 1);
List<(BlockchainEventModel eventLog, UInt256 txHash)> epicchainLogs = _EpicChainSystemFixture.logReader._epicchainstore.GetContractLog(EpicChain.EpicChain.Hash, TriggerType.Application).ToList();
Assert.Equal(epicchainLogs.Count, 1);
Assert.Equal(epicchainLogs[0].txHash, _EpicChainSystemFixture.txs[0].Hash);
Assert.Equal(epicchainLogs[0].eventLog.EventName, "Transfer");
Assert.Equal(epicchainLogs[0].eventLog.ScriptHash, EpicChain.EpicChain.Hash);
Assert.Equal(epicchainLogs[0].eventLog.State[2], 1);
}
}
}

0 comments on commit 5f45126

Please sign in to comment.