Unverified Commit 0d68b6bf authored by Seungbae Yu's avatar Seungbae Yu Committed by GitHub

trie: fix typo in comment (#25667)

parent 38e002f4
...@@ -58,7 +58,7 @@ type StateTrie struct { ...@@ -58,7 +58,7 @@ type StateTrie struct {
// and returns MissingNodeError if the root node cannot be found. // and returns MissingNodeError if the root node cannot be found.
func NewStateTrie(owner common.Hash, root common.Hash, db *Database) (*StateTrie, error) { func NewStateTrie(owner common.Hash, root common.Hash, db *Database) (*StateTrie, error) {
if db == nil { if db == nil {
panic("trie.NewSecure called without a database") panic("trie.NewStateTrie called without a database")
} }
trie, err := New(owner, root, db) trie, err := New(owner, root, db)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment