Skip to content

Commit

Permalink
disable chain logo
Browse files Browse the repository at this point in the history
until a Snap UI will have a way to adjust its size
  • Loading branch information
Nick-1979 committed Dec 22, 2023
1 parent fb9758f commit 20a60f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
9 changes: 7 additions & 2 deletions packages/snap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@

A MetaMask Snap for seamless interaction with the Polkadot ecosystem, a prominent platform for cross-chain communication and scalability. Now you can use your MetaMask wallet to access Polkadot dApps and tokens effortlessly.

To integrate this Snap into your dApp, you can easily upgrade your existing @polkadot/extension-dapp by replacing it with @polkagate/extension-dapp. It's important to note that once our changes are merged into the official extension-dapp, this manual update will no longer be necessary.
To integrate this Snap into your dApp, you can easily upgrade your existing @polkadot/extension-dapp by replacing it with @polkagate/extension-dapp. It's important to note that once our changes are merged into the official polkadot extension-dapp, this manual update will no longer be necessary.

The Polkagate Signer is currently operational within the Metamask Flask and is in the process of being published on the Metamask repository, making it readily available to all Metamask users.

<p align="center">
<img src="https://raw.githubusercontent.com/Nick-1979/PolkadotJsPlusPictures/main/polkagate/polkamask%20small.bmp" alt="Image" width="600" />
</p>

<!-- npm publish --auth-type=web --!>
<!--
To Publish on NPM:
adjust version in package.json and snap.manifest.json
yarn build
npm publish --auth-type=web
--!>
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkagate/snap",
"version": "0.1.10",
"version": "0.1.11",
"description": "PolkaMask: a MetaMask Snap to interact with Polkadot ecosystem, a platform for cross-chain communication and scalability. Use your MetaMask wallet to access Polkadot dApps and tokens. No extra extension needed.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.1.10",
"version": "0.1.11",
"description": "PolkaMask: a MetaMask Snap to interact with Polkadot, a platform for cross-chain communication and scalability. Use your MetaMask wallet to access Polkadot dApps and tokens. No extra extension needed.",
"proposedName": "PolkaMask",
"repository": {
"type": "git",
"url": "https://github.com/polkagate/polkamask.git"
},
"source": {
"shasum": "zKNwgefHGQqz8h/tnMRKYyRUwxyvGf12iZVSA28zAYw=",
"shasum": "ZFoWEuasiMv0vYHNobbL41b+OXLvI4geOjN1ZsZu7+I=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
12 changes: 7 additions & 5 deletions packages/snap/src/rpc/showConfirmTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ const transactionContent = (
const header = [
heading(headingText),
divider(),
text(`Section: **${formatCamelCase(section)}**`),
divider(),
text(`Method: **${formatCamelCase(method)}**`),
text(
`Action: **${formatCamelCase(section)}** (**${formatCamelCase(
method,
)}**)`,
),
divider(),
];

Expand All @@ -56,8 +58,8 @@ const transactionContent = (
text(`Estimated Fee: **${partialFee.toHuman()}**`),
divider(),
text(`Chain Name: **${formatCamelCase(chainName)}**`),
divider(),
panel([text('Chain_Logo:'), image(chainLogoSvg)]),
// divider(),
// panel([text('Chain Logo:'), image(chainLogoSvg)]), // uncomment when image size adjustment will be enable by Metamask
divider(),
text(`More info: **${decoded.docs || 'Update metadata to view this!'}**`),
];
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/rpc/txContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const txContent = (
return [];
default:
return [
text(`_Details:`),
text(`_Details_:`),
text(JSON.stringify(decodedArgs || args, null, 2)), // decodedArgs show the args' labels as well
];
}
Expand Down

0 comments on commit 20a60f4

Please sign in to comment.