Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose onSignature callbacks for eth_signTypedData_v4 requests #537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

normanzb
Copy link
Contributor

@normanzb normanzb commented Jan 24, 2025

Change Summary

onSignatureXXX callbacks will be triggered when the frame server request for signing for typed data (eth_signTypedData_v4).
However previous these callbacks are not exposed via useFrame()

Merge Checklist

  • PR has a Changeset
  • PR includes documentation if necessary
  • PR updates the boilerplates if necessary

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frames-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 5:06pm
framesjs-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 5:06pm
framesjs-examples ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 5:06pm

@@ -325,6 +331,7 @@ export function useFrame<
homeframeUrl,
signerState.hasSigner,
signerState.signer,
onErrorRef,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got a eslint warning here about missing dep, since it is ref it should be fine to be included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant