@atomiqlabs/chain-evm 2.1.11 → 2.1.12

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.
@@ -250,6 +250,8 @@ class EVMSpvVaultContract extends EVMContractBase_1.EVMContractBase {
250
250
  const vaults = [];
251
251
  let promises = [];
252
252
  for (let [identifier, vaultParams] of openedVaults.entries()) {
253
+ if (vaultParams.btcRelayContract.toLowerCase() !== this.btcRelay.contractAddress.toLowerCase())
254
+ continue;
253
255
  const [owner, vaultIdStr] = identifier.split(":");
254
256
  promises.push(this.contract.getVault(owner, BigInt(vaultIdStr)).then(vaultState => {
255
257
  if (vaultState.spvVaultParametersCommitment === (0, EVMSpvVaultData_1.getVaultParamsCommitment)(vaultParams)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "EVM specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -358,6 +358,8 @@ export class EVMSpvVaultContract<ChainId extends string>
358
358
  const vaults: EVMSpvVaultData[] = [];
359
359
  let promises: Promise<void>[] = [];
360
360
  for(let [identifier, vaultParams] of openedVaults.entries()) {
361
+ if(vaultParams.btcRelayContract.toLowerCase()!==this.btcRelay.contractAddress.toLowerCase()) continue;
362
+
361
363
  const [owner, vaultIdStr] = identifier.split(":");
362
364
 
363
365
  promises.push(this.contract.getVault(owner, BigInt(vaultIdStr)).then(vaultState => {