Skip to content

Commit

Permalink
fix redefine web3 (#9262)
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu authored Jul 6, 2021
1 parent 5f1f9ca commit 4dcaa00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/v2/js/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const WalletConnectProvider = window.WalletConnectProvider.default;
const eventWalletReady = new Event('walletReady', {bubbles: true});
const eventDataWalletReady = new Event('dataWalletReady', {bubbles: true});

var web3 = typeof (web3) != 'undefined' ? web3 : null;
if (typeof (web3) != 'undefined') {
var web3 = web3;
}
let web3Modal;
let provider;
let selectedAccount;
Expand Down

0 comments on commit 4dcaa00

Please sign in to comment.