I want to call smart contract method via sendTransaction
from one of migrations. I'm using Truffle. During this migration I create a new wallet with a mnemonic.
const seed = bip39.mnemonicToSeed(mnemonic)
const hdk = hdkey.fromMasterSeed(seed)
const addrNode = hdk.derivePath("m/44'/60'/0'/0/0")
const walletAddr = wallet.getAddressString()
await someFactory.createProfile.sendTransaction(detailsHash, { from: walletAddr })
During the transaction I receive an exception
Returned error: sender account not recognized
How to send transaction with a newly created from a mnemonic profile?