Skip to content

Commit

Permalink
fix(zktrie): fix NewZktrieDatabase (#638)
Browse files Browse the repository at this point in the history
* feat(zktrie): fix `NewZktrieDatabase`

* bump version
  • Loading branch information
0xmountaintop authored Mar 27, 2024
1 parent 0f0cd99 commit 3cf590b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trie/zk_trie_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ type ZktrieDatabase struct {
}

func NewZktrieDatabase(diskdb ethdb.KeyValueStore) *ZktrieDatabase {
return &ZktrieDatabase{db: NewDatabase(diskdb), prefix: []byte{}}
db := NewDatabase(diskdb)
db.Zktrie = true
return &ZktrieDatabase{db: db, prefix: []byte{}}
}

// adhoc wrapper...
Expand Down

0 comments on commit 3cf590b

Please sign in to comment.