Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jun 9, 2024
1 parent c802d1a commit 65d2116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethergo/backends/anvil/anvil.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ func (f *Backend) ChainConfig() *params.ChainConfig {
// Signer gets the signer for the chain.
func (f *Backend) Signer() types.Signer {
// Get latest block by nil
latestBlock, err := f.BlockByNumber(f.Context(), nil)
latestBlock, err := f.Client().HeaderByNumber(f.Context(), nil)

Check warning on line 291 in ethergo/backends/anvil/anvil.go

View check run for this annotation

Codecov / codecov/patch

ethergo/backends/anvil/anvil.go#L290-L291

Added lines #L290 - L291 were not covered by tests
require.Nil(f.T(), err)

return types.MakeSigner(f.ChainConfig(), latestBlock.Number(), latestBlock.Time())
return types.MakeSigner(f.ChainConfig(), latestBlock.Number, latestBlock.Time)

Check warning on line 294 in ethergo/backends/anvil/anvil.go

View check run for this annotation

Codecov / codecov/patch

ethergo/backends/anvil/anvil.go#L294

Added line #L294 was not covered by tests
}

// FundAccount funds an account with the given amount.
Expand Down

0 comments on commit 65d2116

Please sign in to comment.