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: detect payload signing type for WalletConnect #2309

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

dianasavvatina
Copy link
Contributor

Proposed changes

Improved payload representation if the unpackData fails

Types of changes

  • Bugfix
  • New feature
  • Refactor
  • Breaking change
  • UI fix

Steps to reproduce

Screenshots

Add the screenshots of how the app used to look like and how it looks now

Before:

Taquito:
image

Now:

Test dApp with Tezos Provider
image

Taquito test dApp
image

fxhash
image

objkt
image

Checklist

  • Tests that prove my fix is effective or that my feature works have been added
  • Documentation has been added (if appropriate)
  • Screenshots are added (if any UI changes have been made)
  • All TODOs have a corresponding task created (and the link is attached to it)

Copy link

vercel bot commented Jan 3, 2025

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

Name Status Preview Comments Updated (UTC)
umami-embed-iframe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 3:18pm
umami-embed-iframe-ghostnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 3:18pm
umami-v2-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 3:18pm
umami-v2-web-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 3:18pm

Copy link
Contributor

@OKendigelyan OKendigelyan left a comment

Choose a reason for hiding this comment

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

Approved with small comments

@@ -83,16 +87,26 @@ describe("decodeBeaconPayload", () => {

it("handles an empty payload", () => {
const emptyPayload = "";
Copy link
Contributor

Choose a reason for hiding this comment

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

We can move this const somewhere higher to use it everywhere

const signPayloadProps: SignPayloadProps = {
appName: session.peer.metadata.name,
appIcon: session.peer.metadata.icons[0],
payload: request.params.payload,
isScam: event.verifyContext.verified.isScam,
validationStatus: event.verifyContext.verified.validation,
signer: signer,
signingType: SigningType.RAW,
signingType: signingType,
Copy link
Contributor

Choose a reason for hiding this comment

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

signingType: signingType => signingType

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.

2 participants