Skip to content

Commit

Permalink
Change string case after incorrect refactoring of blockByNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Dec 5, 2024
1 parent 0318758 commit cefd469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func headsHeader(txn db.Transaction) (*core.Header, error) {
}

func (b *Blockchain) BlockByNumber(number uint64) (*core.Block, error) {
b.listener.OnRead("blockByNumber")
b.listener.OnRead("BlockByNumber")
var block *core.Block
return block, b.database.View(func(txn db.Transaction) error {
var err error
Expand Down
2 changes: 1 addition & 1 deletion blockchain/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func TestRevert(t *testing.T) {
})

revertedHeight := uint64(2)
t.Run("blockByNumber should fail with reverted height", func(t *testing.T) {
t.Run("BlockByNumber should fail with reverted height", func(t *testing.T) {
_, err := chain.BlockByNumber(revertedHeight)
require.Error(t, err)
})
Expand Down

0 comments on commit cefd469

Please sign in to comment.