MetaMask / MetaMask/metamask-sdk

[Bug]: signature request, empty https

Open
#1,213 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
338
Forks
260
PR merge metrics
No merged PRs in 30d

Description

### SDK

Web

### Provide environment information

-

### MetaMask SDK Version

latest

### MetaMask Mobile app Version

latest

### What browser are you using? (if relevant)

chrome

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

const sdk = new MetaMaskSDK({
extensionOnly: true,
injectProvider: false,
forceInjectProvider: false,
dappMetadata: {
name: 'My project',
url: `https://${FRONT_ENV_DOMAIN}/${location.pathname}`,
iconUrl: `https://${FRONT_ENV_DOMAIN}/favicon.ico`,
},
});
I do sdk.connectAndSign({
msg: message,
});
I scan QR code and process with mobile app. On the connect step I see full https address, but on the signature request step in the field request from I see only "https".

### Expected Behavior

I should see same address as in Connect step, https://my-site.com

### Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

_No response_

### To Reproduce

do sdk.connectAndSign({
msg: message,
}); and look the signature request step

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue through the mentioned sdk.connectAndSign({ msg: message }) flow, comparing the URL shown during connection with the signature request in MetaMask Mobile. Trace how dappMetadata.url is passed into the signature request; the work is done when the complete https://my-site.com address is displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.