From 62dd637f2cdf46a3dfcdd2da255c3762d00ff806 Mon Sep 17 00:00:00 2001 From: muXxer Date: Thu, 25 Jan 2024 18:19:57 +0100 Subject: [PATCH] Fix test cases --- pkg/indexer/account_test.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/indexer/account_test.go b/pkg/indexer/account_test.go index 3bf7609..eb2d017 100644 --- a/pkg/indexer/account_test.go +++ b/pkg/indexer/account_test.go @@ -46,9 +46,7 @@ func TestIndexer_NewAccountOutput(t *testing.T) { }, &iotago.BlockIssuerFeature{ BlockIssuerKeys: iotago.BlockIssuerKeys{ - &iotago.Ed25519PublicKeyBlockIssuerKey{ - PublicKey: hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey)), - }, + iotago.Ed25519PublicKeyHashBlockIssuerKeyFromPublicKey(hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey))), }, ExpirySlot: 0, }, @@ -134,9 +132,7 @@ func TestIndexer_ExistingAccountOutput(t *testing.T) { }, &iotago.BlockIssuerFeature{ BlockIssuerKeys: iotago.BlockIssuerKeys{ - &iotago.Ed25519PublicKeyBlockIssuerKey{ - PublicKey: hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey)), - }, + iotago.Ed25519PublicKeyHashBlockIssuerKeyFromPublicKey(hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey))), }, ExpirySlot: 0, }, @@ -251,7 +247,7 @@ func TestIndexer_MutateExistingAccount(t *testing.T) { } require.NoError(ts.T, ts.Indexer.AcceptLedgerUpdate(update)) - + ts.requireFound(newOutputID) ts.requireFound(foundryOutputID) }