1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

[FLASK] Add WebAssembly endowment (#17694)

* Add WebAssembly endowment

Update message and fix lint

Update fa icon

* Remove duplicated webassembly permission from a list
This commit is contained in:
David Drazic 2023-03-10 12:38:58 +01:00 committed by GitHub
parent d6e61e9d07
commit 642ce91b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -2822,6 +2822,10 @@
"message": "View your public key for $1.",
"description": "The description for the `snap_getBip32PublicKey` permission. $1 is a name for the derivation path, e.g., 'Ethereum accounts'."
},
"permission_webAssembly": {
"message": "Support for WebAssembly.",
"description": "The description of the `endowment:webassembly` permission."
},
"permissions": {
"message": "Permissions"
},

View File

@ -171,6 +171,12 @@ const PERMISSION_DESCRIPTIONS = deepFreeze({
rightIcon: null,
weight: 2,
}),
[EndowmentPermissions['endowment:webassembly']]: (t) => ({
label: t('permission_webAssembly'),
leftIcon: 'fas fa-microchip',
rightIcon: null,
weight: 2,
}),
[EndowmentPermissions['endowment:long-running']]: (t) => ({
label: t('permission_longRunning'),
leftIcon: 'fas fa-infinity',