We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mnemonicToAccount
2.21.8
When providing the nonceManager option, Typescript gives an error even though it's a valid option:
nonceManager
import { mnemonicToAccount, nonceManager } from 'viem/accounts'; const account = mnemonicToAccount('some mnemonic...', { nonceManager });
error TS2353: Object literal may only specify known properties, and 'nonceManager' does not exist in type 'HDOptions'.
Typescript should not give an error as hdKeyToAccount supports passing in a nonceManager:
hdKeyToAccount
export function mnemonicToAccount( mnemonic: string, opts: HDOptions = {}, ): HDAccount { const seed = mnemonicToSeedSync(mnemonic) return hdKeyToAccount(HDKey.fromMasterSeed(seed), opts) }
No response
The text was updated successfully, but these errors were encountered:
b509c6e
No branches or pull requests
Check existing issues
Viem Version
2.21.8
Current Behavior
When providing the
nonceManager
option, Typescript gives an error even though it's a valid option:Expected Behavior
Typescript should not give an error as
hdKeyToAccount
supports passing in anonceManager
:Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: