diff --git a/hdwallet.go b/hdwallet.go index c40dd4c..d7b8747 100644 --- a/hdwallet.go +++ b/hdwallet.go @@ -264,14 +264,6 @@ func (w *Wallet) SignTxWithPassphrase(account accounts.Account, passphrase strin return w.SignTx(account, tx, chainID) } -// Mnemonic returns the wallet's mnemonic, if using a mnemonic as a seed. -func (w *Wallet) Mnemonic() (string, error) { - if w.mnemonic == "" { - return "", errors.New("this wallet is not using a mnemonic") - } - return w.mnemonic, nil -} - // PrivateKey returns the ECDSA private key of the account. func (w *Wallet) PrivateKey(account accounts.Account) (*ecdsa.PrivateKey, error) { path, err := ParseDerivationPath(account.URL.Path) diff --git a/hdwallet_test.go b/hdwallet_test.go index 07e522c..b79d59b 100644 --- a/hdwallet_test.go +++ b/hdwallet_test.go @@ -20,15 +20,6 @@ func TestWallet(t *testing.T) { t.Error(err) } - walletmnemonic, err := wallet.Mnemonic() - if err != nil { - t.Error(err) - } - - if walletmnemonic != mnemonic { - t.Error("wrong mnemonic") - } - path, err := ParseDerivationPath("m/44'/60'/0'/0/0") if err != nil { t.Error(err)