forked from cerc-io/ipld-eth-server
Add indices for tx_to and tx_from (#112)
This commit is contained in:
@@ -334,6 +334,9 @@ func AssertRepositoryBehavior(buildRepository func(node core.Node) repositories.
|
||||
repository.CreateContract(core.Contract{Hash: "x123"})
|
||||
contract, err := repository.FindContract("x123")
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
sort.Slice(contract.Transactions, func(i, j int) bool {
|
||||
return contract.Transactions[i].Hash < contract.Transactions[j].Hash
|
||||
})
|
||||
Expect(contract.Transactions).To(
|
||||
Equal([]core.Transaction{
|
||||
{Hash: "TRANSACTION1", To: "x123"},
|
||||
|
||||
Reference in New Issue
Block a user