Skip to content

Commit

Permalink
test(common-scripts): ignore coverage of globalThis.ethereum checking
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Jun 24, 2024
1 parent 4b0b31f commit 486fae6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/common-scripts/src/omnilock-ethereum-displaying.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export async function signMessage(
digest: BytesLike,
provider?: Provider
): Promise<string> {
/* c8 ignore start */
const internal: Provider | undefined =
provider ?? (globalThis as { ethereum?: Provider }).ethereum;

Expand All @@ -25,6 +26,7 @@ export async function signMessage(
"No provider found, make sure you have installed MetaMask or the other EIP1193 compatible wallet"
);
}
/* c8 ignore end */

const sig = await internal.request({
method: "personal_sign",
Expand Down

0 comments on commit 486fae6

Please sign in to comment.