Skip to content

Instantly share code, notes, and snippets.

@maxhoheiser
Created March 22, 2022 16:46
Show Gist options
  • Save maxhoheiser/0a340b75328ee810b4a0b798b15d2688 to your computer and use it in GitHub Desktop.
Save maxhoheiser/0a340b75328ee810b4a0b798b15d2688 to your computer and use it in GitHub Desktop.
Example addition of custom code to Cypress plugins/index.js
confirmMetamaskEncryptionPublicKeyRequest: async () => {
const confirmed = await metamask.confirmEncryptionPublicKeyRequest();
return confirmed;
},
rejectMetamaskEncryptionPublicKeyRequest: async () => {
const rejected = await metamask.rejectEncryptionPublicKeyRequest();
return rejected;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment