Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ethclient: fix error handling for header test (ethereum#22514)
The wantErr field was disused, and the error returned by HeaderByNumber was not properly tested. This simplifies the error checking using errors.Is and asserts that getting an expected missing header returns ethereum.NotFound. Also adds a nil check condition for header.Number before using big.Int's Sign method.
- Loading branch information