Skip to content

Commit

Permalink
fixed breaking test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidu28 committed Jan 23, 2024
1 parent 743a827 commit f587f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
data/goerli_slot_6397852.json
data/goerli_slot_6397952.json
data/goerli_slot_6399998.json
data/goerli_slot_6399998.json
data/deneb_goerli_slot_7413760.json
data/deneb_goerli_slot_7421952.json
data/deneb_goerli_slot_7431952.json
6 changes: 1 addition & 5 deletions merkle_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,7 @@ func TestStateRootAgainstLatestBlockHeaderProof(t *testing.T) {
// ParseCapellaBeaconStateFromJSON(*oracleStateJSON, &oracleState)

var blockHeader phase0.BeaconBlockHeader
buf, err := os.ReadFile("data/goerli_block_header_6399998.json")
if err != nil {
fmt.Println("read error with header file")
}
err = blockHeader.UnmarshalJSON(buf)
blockHeader, err := ExtractBlockHeader("data/goerli_block_header_6399998.json")
if err != nil {
fmt.Println("blockHeader.UnmarshalJSON error", err)
}
Expand Down

0 comments on commit f587f6f

Please sign in to comment.