@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.js CHANGED
@@ -192,7 +192,13 @@ var _PrivateKeyWalletProvider = class _PrivateKeyWalletProvider {
192
192
  return this.getWallet();
193
193
  }
194
194
  create(mnemonic) {
195
- throw new Error("PrivateKeyWalletProvider does not support creating wallets from mnemonics. Use MnemonicWalletProvider instead.");
195
+ const wallet = import_ethers.ethers.Wallet.fromPhrase(mnemonic);
196
+ return {
197
+ provider: _PrivateKeyWalletProvider.PROVIDER_NAME,
198
+ address: wallet.address,
199
+ privateKey: wallet.privateKey,
200
+ mnemonic: null
201
+ };
196
202
  }
197
203
  generate() {
198
204
  const wallet = import_ethers.ethers.Wallet.createRandom();