Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to connect wallet read verified contracts requests #38

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

MexicanAce
Copy link
Contributor

@MexicanAce MexicanAce commented Oct 6, 2023

What ❔

Add the option for connecting your MetaMask wallet when masking Read requests for verified contracts. By default, it will still use the default network Provider and behave like before, but if there's a wallet it will use its signer.

Why ❔

This is necessary for functions that rely on msg.sender, so that it will be passed in correctly.

Evidence

Interacting with a Greeter.sol contract (with & without MetaMask wallet connected):

Screen.Recording.2023-10-06.at.5.29.56.PM.mov
Screen.Recording.2023-10-06.at.5.28.46.PM.mov

Interacting with a Characters.sol contract that relies on msg.sender (with & without MetaMask wallet connected):

Screen.Recording.2023-10-06.at.5.26.15.PM.mov
Screen.Recording.2023-10-06.at.5.27.10.PM.mov

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

API E2E Test Results

184 tests   184 ✔️  37s ⏱️
  12 suites      0 💤
    1 files        0

Results for commit bf56410.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Unit Test Results

       3 files     237 suites   3m 21s ⏱️
1 808 tests 1 807 ✔️ 1 💤 0
1 833 runs  1 832 ✔️ 1 💤 0

Results for commit bf56410.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Visit the preview URL for this PR (updated for commit bf56410):

(expires Tue, 17 Oct 2023 12:44:01 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e508f9012944951194447cb8885950b451a24403

@MexicanAce MexicanAce merged commit 2cbd7ce into main Oct 10, 2023
24 checks passed
@MexicanAce MexicanAce deleted the nmv/allow-wallet-connection-for-read branch October 10, 2023 13:02
@github-actions
Copy link

🎉 This PR is included in version 2.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants