Skip to content

Commit

Permalink
fix ethapi test
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Dec 7, 2023
1 parent bc55574 commit 0227c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,10 @@ func (b testBackend) StateAndHeaderByNumber(ctx context.Context, number rpc.Bloc
}
header, err := b.HeaderByNumber(ctx, number)
if err != nil {
return nil, nil, err
return nil, nil, nil, err
}
if header == nil {
return nil, nil, errors.New("header not found")
return nil, nil, nil, errors.New("header not found")
}
stateDb, err := b.chain.StateAt(header.Root)
return stateDb, header, NoOpStateRelease, err
Expand Down

0 comments on commit 0227c54

Please sign in to comment.