Skip to content

state.go:25:27: not enough arguments in call to state.New #1

@sledro

Description

@sledro

Hey @CryptoKass

Thanks for the awesome lib. I know it's been a while and dependency cod has changed. When trying to use it now, we get the following issue:

Seems *snapshot.Tree is now required also.

Screenshot:

image

Error Stack:

../../../../pkg/mod/github.com/cryptokass/levm@v0.0.0-20190520214956-591ae30bf60f/vminterface/state.go:25:27: not enough arguments in call to state.New
	have ("github.com/ethereum/go-ethereum/common".Hash, state.Database)
	want ("github.com/ethereum/go-ethereum/common".Hash, state.Database, *snapshot.Tree)
# github.com/cryptokass/levm/vminterface
../../../../pkg/mod/github.com/cryptokass/levm@v0.0.0-20190520214956-591ae30bf60f/vminterface/state.go:25:27: not enough arguments in call to state.New
	have ("github.com/ethereum/go-ethereum/common".Hash, state.Database)
	want ("github.com/ethereum/go-ethereum/common".Hash, state.Database, *snapshot.Tree)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions