Skip to content

Commit

Permalink
fix: add origin data to the signature dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 3, 2023
1 parent 8374e6a commit 6ddb227
Show file tree
Hide file tree
Showing 3 changed files with 879 additions and 875 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/filecoin-project/filsnap.git"
},
"source": {
"shasum": "v4BQvo8dts+o7OOPspJ1yP9FBFpcAlCX2TfvIv9coP4=",
"shasum": "eHj3BcmztnJhZ/N07SztFOIXivo3IRcCCBn/okkGTTU=",
"location": {
"npm": {
"filePath": "dist/snap.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/snap/src/rpc/sign-message.ts
Expand Up @@ -85,6 +85,7 @@ export async function signMessage(
const conf = await snapDialog(ctx.snap, {
type: 'confirmation',
content: panel([
heading(`Request from ${ctx.origin}`),
text(
`Send **${Token.fromAttoFIL(message.value).toFIL().toString()} ${
config.unit?.symbol ?? 'FIL'
Expand Down Expand Up @@ -164,6 +165,7 @@ export async function signMessageRaw(
const conf = await snapDialog(ctx.snap, {
type: 'confirmation',
content: panel([
heading(`Request from ${ctx.origin}`),
text(
`Do you want to sign this message with **Account ${accountNumber}** _${account.address.toString()}_?`
),
Expand Down

0 comments on commit 6ddb227

Please sign in to comment.