diff options
Diffstat (limited to 'app/scripts/inpage.js')
-rw-r--r-- | app/scripts/inpage.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js new file mode 100644 index 000000000..02bf226cb --- /dev/null +++ b/app/scripts/inpage.js @@ -0,0 +1,15 @@ +const web3 = require('web3') +const MetamaskProvider = require('./lib/metamask-provider.js') + +const rpcUrl = 'https://rpc.metamask.io' + + +var provider = new MetamaskProvider(forwardPayload, rpcUrl) +web3.setProvider(provider) + +// injecting web3 +window.web3 = web3 + +function forwardPayload(){ + debugger +}
\ No newline at end of file |