Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Nov 16, 2023
1 parent 870c932 commit 2d69186
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/slashing_protection/test_fixtures.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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
)
Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 2d69186

Please sign in to comment.