From 38fbe272a2ed47ba70c9a1f400c4317ffbc19b24 Mon Sep 17 00:00:00 2001 From: Luit Hollander Date: Tue, 8 Jan 2019 17:35:58 +0100 Subject: [PATCH] Small naming changes --- README.md | 4 ++-- webpack.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index debc2e9102..305716280c 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ web3.eth.getCode("0x06012c8cf97BEaD5deAe237070F9587f8E7A266d").then(code => { / #### Browser ```javascript -const { EVM } = window.EVM_Utils; +const { EVM } = window.EVM; const web3 = new Web3(window.web3.currentProvider); web3.eth.getCode("0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359", function(err,code) { /* DAI contract */ if(err) throw err; @@ -106,7 +106,7 @@ web3.eth.getTransaction("0xd20a8d888a3f29471ea41ea77cc2d95ccd79ade1eaad059e83524 #### Browser ```javascript -const { Transaction } = window.EVM_Utils; +const { Transaction } = window.EVM; const web3 = new Web3(window.web3.currentProvider); web3.eth.getTransaction("0xd20a8d888a3f29471ea41ea77cc2d95ccd79ade1eaad059e83524e72b9adf962", function(err,transactionData) { if(err) throw err; diff --git a/webpack.config.ts b/webpack.config.ts index e0dae46335..21c1dd526b 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -9,11 +9,11 @@ const sourcePath = path.resolve(__dirname, 'src'); const config: Configuration = { mode: isDevelopment ? 'development' : 'production', entry: { - EVM_Utils: path.resolve(sourcePath, 'index.ts') + EVM: path.resolve(sourcePath, 'index.ts') }, output: { path: path.resolve(__dirname, 'lib'), - library: 'EVM_Utils' + library: 'EVM' }, resolve: { extensions: ['.ts', '.js']