diff options
Diffstat (limited to 'app/scripts/web3.js')
-rw-r--r-- | app/scripts/web3.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/scripts/web3.js b/app/scripts/web3.js index 2bbf95ac3..f0fec7b06 100644 --- a/app/scripts/web3.js +++ b/app/scripts/web3.js @@ -1,2 +1,14 @@ +const web3 = require('web3') +const MetamaskProvider = require('./metamask-provider.js') + + +var provider = new MetamaskProvider(forwardPayload, 'https://rpc.metamask.io') +web3.setProvider(provider) + console.log('injecting web3....') -window.web3 = {}
\ No newline at end of file +window.web3 = web3 + + +function forwardPayload(){ + debugger +}
\ No newline at end of file |