Skip to content

Wrong type for SelfDerive method #33

@jhlq

Description

@jhlq

When trying to run src/ethcracker.go:

src/accounts/keystore/keystore.go:114:17: cannot use keystoreWallet literal (type *keystoreWallet) as type accounts.Wallet in assignment:
	*keystoreWallet does not implement accounts.Wallet (wrong type for SelfDerive method)
		have SelfDerive(accounts.DerivationPath, ethereum.ChainStateReader)
		want SelfDerive([]accounts.DerivationPath, ethereum.ChainStateReader)
src/accounts/keystore/keystore.go:153:55: cannot use wallet (type *keystoreWallet) as type accounts.Wallet in field value:
	*keystoreWallet does not implement accounts.Wallet (wrong type for SelfDerive method)
		have SelfDerive(accounts.DerivationPath, ethereum.ChainStateReader)
		want SelfDerive([]accounts.DerivationPath, ethereum.ChainStateReader)
src/accounts/keystore/keystore.go:154:20: cannot use wallet (type *keystoreWallet) as type accounts.Wallet in append:
	*keystoreWallet does not implement accounts.Wallet (wrong type for SelfDerive method)
		have SelfDerive(accounts.DerivationPath, ethereum.ChainStateReader)
		want SelfDerive([]accounts.DerivationPath, ethereum.ChainStateReader)
$ go version
go version go1.10.4 linux/amd64

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