Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Web3 utils instead of execution context web3 #2475

Merged
merged 1 commit into from
Dec 30, 2019
Merged

Conversation

iurimatias
Copy link
Member

part of moving to remix as web3 provider

@iurimatias iurimatias changed the title user Web3 utils instead of execution context web3 use Web3 utils instead of execution context web3 Dec 6, 2019
@@ -7,6 +7,7 @@ var typeConversion = remixLib.execution.typeConversion
var txExecution = remixLib.execution.txExecution
var CompilerAbstract = require('../../../compiler/compiler-abstract')
var EventManager = remixLib.EventManager
var Web3 = require('web3')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please always use const if possible?

@@ -7,6 +7,7 @@ var typeConversion = remixLib.execution.typeConversion
var txExecution = remixLib.execution.txExecution
var CompilerAbstract = require('../../../compiler/compiler-abstract')
var EventManager = remixLib.EventManager
var Web3 = require('web3')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's usually better for tree shaking to be more precise about the import: const { utils } from 'web3' or with require const { utils } = require('web3')

@iurimatias iurimatias merged commit c7986d2 into master Dec 30, 2019
@iurimatias iurimatias deleted the web3_utils branch December 30, 2019 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants