1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const config_1 = require("@nomiclabs/buidler/config");
|
4 | const plugins_1 = require("@nomiclabs/buidler/plugins");
|
5 | const web3_provider_adapter_1 = require("./web3-provider-adapter");
|
6 | function default_1() {
|
7 | config_1.extendEnvironment((env) => {
|
8 | env.Web3 = plugins_1.lazyFunction(() => require("web3"));
|
9 | env.web3 = plugins_1.lazyObject(() => {
|
10 | const Web3 = require("web3");
|
11 | return new Web3(new web3_provider_adapter_1.Web3HTTPProviderAdapter(env.network.provider));
|
12 | });
|
13 | });
|
14 | }
|
15 | exports.default = default_1;
|
16 |
|
\ | No newline at end of file |