Skip to content

Commit

Permalink
[#754] Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Jul 1, 2024
1 parent 7bf3a54 commit e67a569
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test/handlers/CompatibilityFallbackHandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,19 @@ describe("CompatibilityFallbackHandler", () => {
const signerSafeMessageHash = calculateSafeMessageHash(signerSafeAddress, validatorSafeMessageHash, await chainId());

const signerSafeOwnerSignature = await signHash(user1, signerSafeMessageHash);

const signerSafeSig = buildContractSignature(signerSafeAddress, signerSafeOwnerSignature.data);

expect(
await validator.isValidSignature.staticCall(dataHash, buildSignatureBytes([typedDataSig, ethSignSig, signerSafeSig])),
).to.be.eq("0x1626ba7e");
expect(await validator.isValidSignature.staticCall(dataHash, buildSignatureBytes([typedDataSig, ethSignSig]))).to.be.eq(
"0x1626ba7e",
);

expect(await validator.isValidSignature.staticCall(dataHash, buildSignatureBytes([signerSafeSig, ethSignSig]))).to.be.eq(
"0x1626ba7e",
);

expect(await validator.isValidSignature.staticCall(dataHash, buildSignatureBytes([typedDataSig, signerSafeSig]))).to.be.eq(
"0x1626ba7e",
);
});
});

Expand Down

0 comments on commit e67a569

Please sign in to comment.