@vleap/warps-adapter-evm 0.2.0-beta.61 → 0.2.0-beta.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -145,7 +145,13 @@ var _PrivateKeyWalletProvider = class _PrivateKeyWalletProvider {
145
145
  return this.getWallet();
146
146
  }
147
147
  create(mnemonic) {
148
- throw new Error("PrivateKeyWalletProvider does not support creating wallets from mnemonics. Use MnemonicWalletProvider instead.");
148
+ const wallet = ethers.Wallet.fromPhrase(mnemonic);
149
+ return {
150
+ provider: _PrivateKeyWalletProvider.PROVIDER_NAME,
151
+ address: wallet.address,
152
+ privateKey: wallet.privateKey,
153
+ mnemonic: null
154
+ };
149
155
  }
150
156
  generate() {
151
157
  const wallet = ethers.Wallet.createRandom();