Skip to content

Commit

Permalink
cleanup: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Jul 27, 2024
1 parent b120a10 commit d76ec61
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 561 deletions.
546 changes: 0 additions & 546 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

6 changes: 2 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
spec: '@yarnpkg/plugin-workspace-tools'
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
spec: 'https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js'

yarnPath: .yarn/releases/yarn-3.2.1.cjs
2 changes: 1 addition & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@wharfkit/account-creation-plugin-metamask": "git+https://github.com/wharfkit/account-creation-plugin-metamask.git#master",
"@wharfkit/session": "next",
"@wharfkit/transact-plugin-resource-provider": "^1.1.1",
"@wharfkit/wallet-plugin-metamask": "git+https://github.com/wharfkit/wallet-plugin-metamask.git#master",
"@wharfkit/wallet-plugin-metamask": "next",
"@wharfkit/web-renderer": "next"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/site/src/components/CreateAccount.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
const publicKey = await getPublicKey();
account.publicKey = publicKey;
});
$: console.log({ account });
</script>

{#if !created}
Expand Down
3 changes: 0 additions & 3 deletions packages/site/src/lib/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ export async function getSnapsProvider() {
return null;
}

console.log({ hasSnapsSupport: await hasSnapsSupport() });

if (await hasSnapsSupport()) {
return window.ethereum;
}
Expand Down Expand Up @@ -118,6 +116,5 @@ export async function getSnapsProvider() {
export async function checkIsFlask(provider: MetaMaskInpageProvider | null) {
if (!provider) return false;
const clientVersion = await provider.request({ method: 'web3_clientVersion' });

return (clientVersion as string[])?.includes('flask');
}
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
},
"source": {
"shasum": "4X7nZ0EHhVDhRIBfDNzV/T5771WqvxgL3qEEaYZwPmU=",
"shasum": "iO/FZiDyyd6PCdWN771xEnZJOWJt6lNuoerat3C0m60=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4276,15 +4276,15 @@ __metadata:
languageName: node
linkType: hard

"@wharfkit/wallet-plugin-metamask@git+https://github.com/wharfkit/wallet-plugin-metamask.git#master":
"@wharfkit/wallet-plugin-metamask@npm:next":
version: 1.0.0-rc3
resolution: "@wharfkit/wallet-plugin-metamask@https://github.com/wharfkit/wallet-plugin-metamask.git#commit=ae23425daead0ec4654b01ff57ecba3c7f67617c"
resolution: "@wharfkit/wallet-plugin-metamask@npm:1.0.0-rc3"
dependencies:
"@metamask/providers": ^17.0.0
tslib: ^2.1.0
peerDependencies:
"@wharfkit/session": ^1.1.0
checksum: 69fb656b9f40b9bd9e0891ef0303ed25de23b6f73ed6676a80b04827c6addf0f18d18bf45007febc74c77b06cbfa8b286ff2322b1c2d79603e6d1ebda75862f5
checksum: 21196847c16d05e469a01a3e2cd8951a6c2da749d269c70676a11dd5b1ce10aa108f8672fa18769193e8b05b3f85ffc33fd864430d8c52fb4df439c4afbcd47c
languageName: node
linkType: hard

Expand Down Expand Up @@ -11384,7 +11384,7 @@ __metadata:
"@wharfkit/account-creation-plugin-metamask": "git+https://github.com/wharfkit/account-creation-plugin-metamask.git#master"
"@wharfkit/session": next
"@wharfkit/transact-plugin-resource-provider": ^1.1.1
"@wharfkit/wallet-plugin-metamask": "git+https://github.com/wharfkit/wallet-plugin-metamask.git#master"
"@wharfkit/wallet-plugin-metamask": next
"@wharfkit/web-renderer": next
eslint: ^9.0.0
eslint-config-prettier: ^9.1.0
Expand Down

0 comments on commit d76ec61

Please sign in to comment.