Skip to content

Commit

Permalink
web3 1.2.1 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Kinsley committed Aug 20, 2019
1 parent 5cb3432 commit 9a587cc
Show file tree
Hide file tree
Showing 210 changed files with 5,942 additions and 4,852 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ typings/

# dotenv environment variables file
.env
packages/dapp/.env.local


build/
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
"config": {
"mnemonic": "notice tobacco baby curious trade other capable invite cable thunder file equal"
},
"resolutions": {
"ethers": "4.0.27",
"**/ethers": "4.0.27"
},
"license": "(Apache-2.0 OR LGPL-2.1-only)",
"devDependencies": {
"coveralls": "^3.0.0",
"ganache-cli": "^6.1.6",
"ganache-cli": "^6.5.1",
"lcov-result-merger": "^3.1.0",
"lerna": "^3.15.0",
"ncp": "^2.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
"react": "^16.8",
"react-dom": "^16.8"
},
"resolutions": {
"ethers": "4.0.27",
"**/ethers": "4.0.27"
},
"dependencies": {
"@joincivil/core": "^4.8.11",
"@joincivil/ethapi": "^0.4.9",
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/components/src/DetailTransactionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class DetailTransactionButton extends React.Component<
const gasPrice = await this.props.civil!.getGasPrice();
this.setState({
price: gasPrice
.times(gas)
.mul(this.props.civil!.toBigNumber(gas))
.div(this.props.civil!.toBigNumber(10).pow(18))
.toNumber(),
priceFailed: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/GasEstimate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class GasEstimate extends React.Component<GasEstimateProps, GasEstimateSt
const gasPrice = await this.props.civil!.getGasPrice();
this.setState({
price: gasPrice
.times(gas)
.mul(this.props.civil!.toBigNumber(gas))
.div(this.props.civil!.toBigNumber(10).pow(18))
.toNumber(),
priceFailed: false,
Expand Down
Loading

0 comments on commit 9a587cc

Please sign in to comment.