Skip to content

Commit

Permalink
Fix m3 (#15)
Browse files Browse the repository at this point in the history
* fix showKey and manifest

Signed-off-by: Ruben <rubdeivis@gmail.com>

* update version and fix tests
Signed-off-by: Ruben <rubdeivis@gmail.com>

---------

Signed-off-by: Ruben <rubdeivis@gmail.com>
  • Loading branch information
rubenguc authored Jun 26, 2023
1 parent 9dacc67 commit 243a291
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kuma-wallet",
"displayName": "Kuma Wallet",
"version": "0.2.2",
"version": "0.2.3",
"description": "Kuma a cross-chain wallet that offers seamless management and transfer of assets between EVM and WASM chains.",
"author": "Blockcoders Engineering <hello@blockcoders.io>",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions src/Extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ describe("Extension", () => {
address: "EVM-1234",
keyring: "EVM",
},
key: "EVM-1234",
});

const Vault = (await import("./storage/entities/Vault")).default;
Expand Down
6 changes: 4 additions & 2 deletions src/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { PASSWORD_REGEX, PRIVATE_KEY_OR_SEED_REGEX } from "./utils/constants";
import { version } from "./utils/env";

export default class Extension {

static get version() {
return version;
}
Expand Down Expand Up @@ -162,7 +161,10 @@ export default class Extension {
static async showKey(): Promise<string | undefined> {
const selectedAccount = await SelectedAccount.get<SelectedAccount>();
if (!selectedAccount || !selectedAccount?.value?.keyring) return undefined;
const { keyring: type, address } = selectedAccount.value;
const { keyring: type } = selectedAccount.value;

const address = selectedAccount.key.split("-")[1];

const keyring = await Vault.getKeyring(type);
return keyring.getKey(address);
}
Expand Down
5 changes: 1 addition & 4 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const commonManifest = {
name: pkg.displayName,
content_scripts: [
{
matches: ["http://*/*", "https://*/*", "<all_urls>"],
matches: ["file://*/*", "http://*/*", "https://*/*"],
run_at: "document_end",
js: ["src/entries/content/index.js"],
},
Expand All @@ -18,7 +18,6 @@ const commonManifest = {
"storage",
"activeTab",
"scripting",
"nativeMessaging",
"tabs",
"notifications",
] as chrome.runtime.ManifestPermissions[],
Expand All @@ -33,7 +32,6 @@ const POPUP = "src/entries/popup/index.html";
const manifestV3: chrome.runtime.ManifestV3 = {
...commonManifest,
manifest_version: 3,
// options_page: "src/entries/options/index.html",
background: {
service_worker: BACKGROUND,
type: "module",
Expand All @@ -53,7 +51,6 @@ const manifestV3: chrome.runtime.ManifestV3 = {
matches: ["<all_urls>"],
},
],
// devtools_page: "src/devtools/index.html",
content_security_policy: {
extension_pages: SECURITY,
},
Expand Down

0 comments on commit 243a291

Please sign in to comment.