Skip to content

Commit

Permalink
[ADHOC] Fix SignerValidator Signature (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathandiep authored Oct 25, 2024
1 parent 5b2aa51 commit d8f0d27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-horses-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@boostxyz/sdk": patch
---

Replace signTypedData util with PrivateKeyAccount's signTypedData
3 changes: 1 addition & 2 deletions packages/sdk/src/Validators/SignerValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,8 @@ export async function prepareSignerValidatorClaimDataPayload({
},
};

const trustedSignature = await signTypedData({
const trustedSignature = await signer.privateKey.signTypedData({
...typedData,
privateKey: signer.key,
});

// Prepare the claim data payload using the new helper
Expand Down

0 comments on commit d8f0d27

Please sign in to comment.