Problem: personal_newAccount don't work (#1561)

fix the internal parameter.
This commit is contained in:
yihuang 2022-12-22 08:55:49 +08:00 committed by GitHub
parent aeea656868
commit 0e366db2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ func (b *Backend) NewMnemonic(uid string,
bip39Passphrase string,
algo keyring.SignatureAlgo,
) (*keyring.Record, error) {
info, _, err := b.clientCtx.Keyring.NewMnemonic(uid, keyring.English, bip39Passphrase, bip39Passphrase, algo)
info, _, err := b.clientCtx.Keyring.NewMnemonic(uid, keyring.English, hdPath, bip39Passphrase, algo)
if err != nil {
return nil, err
}