@zerodev/sdk
Advanced tools
Comparing version 4.0.18 to 4.0.19
@@ -120,3 +120,4 @@ "use strict"; | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -139,3 +140,4 @@ } | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -195,3 +197,4 @@ } | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -230,3 +233,4 @@ } | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -233,0 +237,0 @@ } |
@@ -115,3 +115,4 @@ import { getChain, } from "@alchemy/aa-core"; | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -134,3 +135,4 @@ } | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -190,3 +192,4 @@ } | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -225,3 +228,4 @@ } | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold) { | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold) { | ||
throw Error("Recovery config unintialised"); | ||
@@ -228,0 +232,0 @@ } |
{ | ||
"name": "@zerodev/sdk", | ||
"version": "4.0.18", | ||
"version": "4.0.19", | ||
"description": "A collection of ERC-4337 compliant smart contract account interfaces", | ||
@@ -5,0 +5,0 @@ "author": "ZeroDev", |
@@ -153,3 +153,4 @@ import { | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold | ||
) { | ||
@@ -176,3 +177,4 @@ throw Error("Recovery config unintialised"); | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold | ||
) { | ||
@@ -253,3 +255,4 @@ throw Error("Recovery config unintialised"); | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold | ||
) { | ||
@@ -293,3 +296,4 @@ throw Error("Recovery config unintialised"); | ||
!this.threshold || | ||
Object.entries(this.guardians).length !== this.threshold | ||
Object.values(this.guardians).reduce((a, c) => a + c, 0) !== | ||
this.threshold | ||
) { | ||
@@ -296,0 +300,0 @@ throw Error("Recovery config unintialised"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1953102
31592