Skip to content

Conversation

gamalielhere
Copy link
Contributor

No description provided.

@kvhnuke kvhnuke merged commit 25412a5 into master Sep 15, 2021
@kvhnuke kvhnuke deleted the devop/modal-changes branch September 15, 2021 23:47
@bdhaccess94
Copy link

Go to Home

Show web3 modal popup


Code for this example

<script> /* eslint-disable */ import Web3 from 'web3'; import Web3Modal from 'web3modal'; // @ts-ignore import MewConnect from '@myetherwallet/mewconnect-web-client'; export default { name: 'web3Modal', title: 'web3 Modal Example', data () { return { web3: {} }; }, mounted () { }, methods: { async setup () { const providerOptions = { mewconnect: { package: MewConnect, options: { infuraId: process.env.REACT_APP_INFURA_ID || '859569f6decc4446a5da1bb680e7e9cf' } }, }; const web3Modal = new Web3Modal({ network: 'mainnet', // optional cacheProvider: true, // optional providerOptions // required }); const provider = await web3Modal.connect(); this.web3 = new Web3(provider); } } }; </script> <style lang="scss"> #app { font-family: 'Avenir', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; margin-top: 60px; } ul { list-style-type: none; li { text-align: center; } } </style>

@bapisit
Copy link

bapisit commented Aug 31, 2023 via email

@bapisit
Copy link

bapisit commented Aug 31, 2023 via email

@bapisit
Copy link

bapisit commented Aug 31, 2023 via email

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

Successfully merging this pull request may close these issues.

4 participants