Skip to content

Commit

Permalink
fixed more filepaths
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidu28 committed Feb 10, 2024
1 parent a8901ea commit 55251a3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions onchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ func TestProvingDenebWithdrawalAgainstDenebStateOnChain(t *testing.T) {

func TestProvingCapellaWithdrawalAgainstDenebStateOnChain(t *testing.T) {

oracleStateFile := "../data/deneb_goerli_slot_7431952.json"
oracleStateFile := "data/deneb_goerli_slot_7431952.json"
oracleStateJSON, err := ParseJSONFileDeneb(oracleStateFile)
if err != nil {
fmt.Println("error with JSON parsing beacon state")
}
oracleState := deneb.BeaconState{}
ParseDenebBeaconStateFromJSON(*oracleStateJSON, &oracleState)

oracleHeaderFile := "../data/deneb_goerli_block_header_7431952.json"
oracleHeaderFile := "data/deneb_goerli_block_header_7431952.json"
oracleBlockHeader, err = ExtractBlockHeader(oracleHeaderFile)
if err != nil {
fmt.Println("error with block header", err)
Expand All @@ -189,15 +189,15 @@ func TestProvingCapellaWithdrawalAgainstDenebStateOnChain(t *testing.T) {
fmt.Println("error creating versioned state", err)
}

historicalSummaryStateJSON, err := ParseJSONFileCapella("../data/goerli_slot_6397952.json")
historicalSummaryStateJSON, err := ParseJSONFileCapella("data/goerli_slot_6397952.json")
if err != nil {
fmt.Println("error parsing historicalSummaryState JSON")
}
var historicalSummaryState capella.BeaconState
ParseCapellaBeaconStateFromJSON(*historicalSummaryStateJSON, &historicalSummaryState)
historicalSummaryStateBlockRoots := historicalSummaryState.BlockRoots

withdrawalBlock, err := ExtractBlockCapella("../data/goerli_block_6397852.json")
withdrawalBlock, err := ExtractBlockCapella("data/goerli_block_6397852.json")
if err != nil {
fmt.Println("block.UnmarshalJSON error", err)
}
Expand Down Expand Up @@ -257,15 +257,15 @@ func TestProvingCapellaWithdrawalAgainstDenebStateOnChain(t *testing.T) {
}

func TestProvingCapellaWithdrawalAgainstCapellaStateOnChain(t *testing.T) {
oracleStateFile := "../data/goerli_slot_6409723.json"
oracleStateFile := "data/goerli_slot_6409723.json"
oracleStateJSON, err := ParseJSONFileCapella(oracleStateFile)
if err != nil {
fmt.Println("error with JSON parsing beacon state")
}
oracleState := capella.BeaconState{}
ParseCapellaBeaconStateFromJSON(*oracleStateJSON, &oracleState)

oracleHeaderFile := "../data/goerli_block_header_6409723.json"
oracleHeaderFile := "data/goerli_block_header_6409723.json"
oracleBlockHeader, err = ExtractBlockHeader(oracleHeaderFile)
if err != nil {
fmt.Println("error with block header", err)
Expand All @@ -276,15 +276,15 @@ func TestProvingCapellaWithdrawalAgainstCapellaStateOnChain(t *testing.T) {
fmt.Println("error creating versioned state", err)
}

historicalSummaryStateJSON, err := ParseJSONFileCapella("../data/goerli_slot_6397952.json")
historicalSummaryStateJSON, err := ParseJSONFileCapella("data/goerli_slot_6397952.json")
if err != nil {
fmt.Println("error parsing historicalSummaryState JSON")
}
var historicalSummaryState capella.BeaconState
ParseCapellaBeaconStateFromJSON(*historicalSummaryStateJSON, &historicalSummaryState)
historicalSummaryStateBlockRoots := historicalSummaryState.BlockRoots

withdrawalBlock, err := ExtractBlockCapella("../data/goerli_block_6397852.json")
withdrawalBlock, err := ExtractBlockCapella("data/goerli_block_6397852.json")
if err != nil {
fmt.Println("block.UnmarshalJSON error", err)
}
Expand Down

0 comments on commit 55251a3

Please sign in to comment.