From 2d691866cfd59d579d6d929e42be93e6f7643a8b Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 16 Nov 2023 18:55:48 +0100 Subject: [PATCH] fix tests --- tests/slashing_protection/test_fixtures.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/slashing_protection/test_fixtures.nim b/tests/slashing_protection/test_fixtures.nim index abb019d0ae..6bb6ada592 100644 --- a/tests/slashing_protection/test_fixtures.nim +++ b/tests/slashing_protection/test_fixtures.nim @@ -182,7 +182,8 @@ proc runTest(identifier: string) = for blck in step.blocks: let pubkey = ValidatorPubKey.fromRaw(blck.pubkey.PubKeyBytes).get() - let status = db.db_v2.checkSlashableBlockProposal(none(ValidatorIndex), + let status = db.db_v2.checkSlashableBlockProposal( + Opt.none(ValidatorIndex), pubkey, Slot blck.slot ) @@ -196,7 +197,7 @@ proc runTest(identifier: string) = # Successful blocks are to be incoporated in the DB if status.isOk(): # Skip duplicates let status = db.db_v2.registerBlock( - none(ValidatorIndex), + Opt.none(ValidatorIndex), pubkey, Slot blck.slot, Eth2Digest blck.signing_root ) @@ -212,7 +213,7 @@ proc runTest(identifier: string) = for att in step.attestations: let pubkey = ValidatorPubKey.fromRaw(att.pubkey.PubKeyBytes).get() - let status = db.db_v2.checkSlashableAttestation(none(ValidatorIndex), + let status = db.db_v2.checkSlashableAttestation(Opt.none(ValidatorIndex), pubkey, Epoch att.source_epoch, Epoch att.target_epoch @@ -227,7 +228,7 @@ proc runTest(identifier: string) = # Successful attestations are to be incoporated in the DB if status.isOk(): # Skip duplicates let status = db.db_v2.registerAttestation( - none(ValidatorIndex), + Opt.none(ValidatorIndex), pubkey, Epoch att.source_epoch, Epoch att.target_epoch,