Skip to content

Commit 4d108ee

Browse files
authored
Merge pull request #115 from enkryptcom/fix/opensea-hex
fix: opensea hex display
2 parents 53bb7fc + 38fcb67 commit 4d108ee

6 files changed

Lines changed: 9 additions & 4 deletions

File tree

packages/extension/src/providers/ethereum/ui/eth-decrypt.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const Options = ref<ProviderRequestOptions>({
7474
faviconURL: "",
7575
title: "",
7676
url: "",
77+
tabId: 0,
7778
});
7879
onBeforeMount(async () => {
7980
const { Request, options } = await windowPromise;

packages/extension/src/providers/ethereum/ui/eth-get-encryption-key.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const Options = ref<ProviderRequestOptions>({
7373
faviconURL: "",
7474
title: "",
7575
url: "",
76+
tabId: 0,
7677
});
7778
onBeforeMount(async () => {
7879
const { Request, options } = await windowPromise;

packages/extension/src/providers/ethereum/ui/eth-sign-message.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import {
5858
getNetworkByName,
5959
} from "@/libs/utils/networks";
6060
import { ProviderRequestOptions } from "@/types/provider";
61-
import { isAscii } from "@polkadot/util";
61+
import { isUtf8 } from "@polkadot/util";
6262
import { EvmNetwork } from "../types/evm-network";
6363
import { EnkryptAccount } from "@enkryptcom/types";
6464
import { MessageSigner } from "./libs/signer";
@@ -77,6 +77,7 @@ const Options = ref<ProviderRequestOptions>({
7777
faviconURL: "",
7878
title: "",
7979
url: "",
80+
tabId: 0,
8081
});
8182
8283
const message = ref<string>("");
@@ -86,7 +87,7 @@ onBeforeMount(async () => {
8687
account.value = Request.value.params![1] as EnkryptAccount;
8788
identicon.value = network.value.identicon(account.value.address);
8889
Options.value = options;
89-
message.value = isAscii(Request.value.params![0])
90+
message.value = isUtf8(Request.value.params![0])
9091
? hexToUtf8(Request.value.params![0])
9192
: Request.value.params![0];
9293
});

packages/extension/src/providers/ethereum/ui/eth-sign-typedata.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const Options = ref<ProviderRequestOptions>({
8080
faviconURL: "",
8181
title: "",
8282
url: "",
83+
tabId: 0,
8384
});
8485
const message = ref<string>("");
8586
onMounted(async () => {

packages/extension/src/providers/polkadot/ui/dot-sign-message.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import { getError } from "@/libs/error";
5151
import { ErrorCodes } from "@/providers/ethereum/types";
5252
import { WindowPromiseHandler } from "@/libs/window-promise";
5353
import { onBeforeMount, ref } from "vue";
54-
import { isAscii, u8aToString, u8aUnwrapBytes } from "@polkadot/util";
54+
import { isUtf8, u8aToString, u8aUnwrapBytes } from "@polkadot/util";
5555
import networks from "../networks";
5656
import { ProviderRequestOptions } from "@/types/provider";
5757
import { EnkryptAccount } from "@enkryptcom/types";
@@ -74,7 +74,7 @@ onBeforeMount(async () => {
7474
const { Request, options } = await windowPromise;
7575
Options.value = options;
7676
77-
message.value = isAscii(Request.value.params![0])
77+
message.value = isUtf8(Request.value.params![0])
7878
? u8aToString(u8aUnwrapBytes(Request.value.params![0]))
7979
: Request.value.params![0];
8080

packages/extension/src/providers/polkadot/ui/dot-update-metadata.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const Options = ref<ProviderRequestOptions>({
8383
faviconURL: "",
8484
title: "",
8585
url: "",
86+
tabId: 0,
8687
});
8788
const metadata = ref<MetadataDef | null>(null);
8889

0 commit comments

Comments
 (0)