You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @description Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
35
37
* This function should rarely be used directly, instead use @see {import("./verify-signature.js")} and @see {import("./verify-typed-data.js")}}
@@ -77,7 +79,7 @@ export async function verifyHash({
77
79
);
78
80
})();
79
81
80
-
constwrappedSignature=await(async()=>{
82
+
constwrappedSignature: Hex=await(async()=>{
81
83
// If no factory is provided, we have to assume its already deployed or is an EOA
82
84
// TODO: Figure out how to automatically tell if our default factory was used
83
85
if(!accountFactory)returnsignatureHex;
@@ -93,24 +95,40 @@ export async function verifyHash({
93
95
});
94
96
})();
95
97
96
-
constverificationData=encodeDeployData({
97
-
abi: universalSignatureValidatorAbi,
98
-
args: [address,hash,wrappedSignature],
99
-
bytecode: universalSignatureValidatorByteCode,
100
-
});
98
+
letverificationData: {
99
+
to?: string;
100
+
data: Hex;
101
+
};
102
+
constzkSyncChain=awaitisZkSyncChain(chain);
103
+
if(zkSyncChain){
104
+
// zksync chains dont support deploying code with eth_call
0 commit comments