Skip to content

Commit

Permalink
Fix an errant window.ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
Montoya committed Apr 18, 2024
1 parent 15855a3 commit 6fd12cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/site/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ <h2>Follow your Linea Voyage</h2>
Powered by <a href="https://metamask.io/snaps/">MetaMask Snaps</a>
</div>

<script type="text/javascript" src="script.js?v=4"></script>
<script type="text/javascript" src="script.js?v=5"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion packages/site/src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const snapInstalled = async (provider, skippedStep1 = false) => {
event.preventDefault();
if (isAccountConnected) {
// need to disconnect first
await window.ethereum.request({
await provider.request({
"method": "wallet_revokePermissions",
"params": [
{
Expand Down

0 comments on commit 6fd12cd

Please sign in to comment.