diff --git a/README.md b/README.md index 952c22c..eb1232a 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ func main() { database := ipfsethdb.NewDatabase(ipfsNode.Blocks) stateDatabase := state.NewDatabase(database) - stateDB, _ := state.New(common.Hash{}, stateDatabase, nil) + stateDB, _ := state.New(common.Hash{}, stateDatabase) stateDBNodeIterator := state.NewNodeIterator(stateDB) // do stuff with the statedb node iterator } diff --git a/postgres/doc.md b/postgres/doc.md index 1e8f1b9..504fcde 100644 --- a/postgres/doc.md +++ b/postgres/doc.md @@ -33,7 +33,7 @@ func main() { database := pgipfsethdb.NewDatabase(db) stateDatabase := state.NewDatabase(database) - stateDB, _ := state.New(common.Hash{}, stateDatabase, nil) + stateDB, _ := state.New(common.Hash{}, stateDatabase) stateDBNodeIterator := state.NewNodeIterator(stateDB) // do stuff with the statedb node iterator }