some tests and fixed attestqtion calc

This commit is contained in:
Eitan Seri-Levi
2024-12-20 22:53:04 +07:00
parent 5a4cd3bb2c
commit f56083de65
7 changed files with 332 additions and 37 deletions

View File

@@ -1810,7 +1810,7 @@ impl ApiTester {
.map(|att| self.chain.spec.fork_name_at_slot::<E>(att.data().slot))
.unwrap();
self.client
.post_beacon_pool_attestations_v2(self.attestations.as_slice(), fork_name)
.post_beacon_pool_attestations_v1(self.attestations.as_slice())
.await
.unwrap();
assert!(
@@ -1876,7 +1876,7 @@ impl ApiTester {
let err_v2 = self
.client
.post_beacon_pool_attestations_v2(attestations.as_slice(), fork_name)
.post_beacon_pool_attestations_v1(attestations.as_slice())
.await
.unwrap_err();