@tetherto/wdk-wallet-evm-erc-4337 1.0.0-beta.5 → 1.0.0-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tetherto/wdk-wallet-evm-erc-4337",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "A simple package to manage BIP-32 wallets for evm blockchains, which implement the erc-4337 standard and its account abstraction features",
5
5
  "keywords": [
6
6
  "wdk",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@tetherto/wdk-safe-relay-kit": "4.1.5",
33
33
  "@tetherto/wdk-wallet": "1.0.0-beta.7",
34
- "@tetherto/wdk-wallet-evm": "1.0.0-beta.8",
34
+ "@tetherto/wdk-wallet-evm": "1.0.0-beta.11",
35
35
  "bare-node-runtime": "^1.1.4",
36
36
  "ethers": "6.14.4"
37
37
  },
@@ -420,11 +420,12 @@ export default class WalletAccountReadOnlyEvmErc4337 extends WalletAccountReadOn
420
420
 
421
421
  /** @private */
422
422
  async _getEvmReadOnlyAccount () {
423
- const address = await this.getAddress()
424
-
425
- const evmReadOnlyAccount = new WalletAccountReadOnlyEvm(address, this._config)
423
+ if (!this._evmReadOnlyAccount) {
424
+ const address = await this.getAddress()
425
+ this._evmReadOnlyAccount = new WalletAccountReadOnlyEvm(address, this._config)
426
+ }
426
427
 
427
- return evmReadOnlyAccount
428
+ return this._evmReadOnlyAccount
428
429
  }
429
430
 
430
431
  /** @private */