Merge pull request #295 from gnosis/bug/failed-token-tx
Bug: Tx failed because tx's value was converted to exponential notation
This commit is contained in:
commit
be927a06ba
60
package.json
60
package.json
|
@ -33,7 +33,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gnosis.pm/safe-contracts": "1.0.0",
|
"@gnosis.pm/safe-contracts": "1.0.0",
|
||||||
"@gnosis.pm/util-contracts": "2.0.4",
|
"@gnosis.pm/util-contracts": "2.0.4",
|
||||||
"@material-ui/core": "4.6.1",
|
"@material-ui/core": "4.7.0",
|
||||||
"@material-ui/icons": "4.5.1",
|
"@material-ui/icons": "4.5.1",
|
||||||
"@portis/web3": "^2.0.0-beta.45",
|
"@portis/web3": "^2.0.0-beta.45",
|
||||||
"@testing-library/jest-dom": "4.2.4",
|
"@testing-library/jest-dom": "4.2.4",
|
||||||
|
@ -42,8 +42,8 @@
|
||||||
"@welldone-software/why-did-you-render": "3.3.9",
|
"@welldone-software/why-did-you-render": "3.3.9",
|
||||||
"axios": "0.19.0",
|
"axios": "0.19.0",
|
||||||
"bignumber.js": "9.0.0",
|
"bignumber.js": "9.0.0",
|
||||||
"connected-react-router": "6.6.0",
|
"connected-react-router": "6.6.1",
|
||||||
"date-fns": "2.8.0",
|
"date-fns": "2.8.1",
|
||||||
"ethereum-ens": "0.7.8",
|
"ethereum-ens": "0.7.8",
|
||||||
"final-form": "4.18.6",
|
"final-form": "4.18.6",
|
||||||
"history": "4.10.1",
|
"history": "4.10.1",
|
||||||
|
@ -72,30 +72,30 @@
|
||||||
"web3connect": "^1.0.0-beta.23"
|
"web3connect": "^1.0.0-beta.23"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.7.0",
|
"@babel/cli": "7.7.4",
|
||||||
"@babel/core": "7.7.2",
|
"@babel/core": "7.7.4",
|
||||||
"@babel/plugin-proposal-class-properties": "7.7.0",
|
"@babel/plugin-proposal-class-properties": "7.7.4",
|
||||||
"@babel/plugin-proposal-decorators": "7.7.0",
|
"@babel/plugin-proposal-decorators": "7.7.4",
|
||||||
"@babel/plugin-proposal-do-expressions": "7.6.0",
|
"@babel/plugin-proposal-do-expressions": "7.7.4",
|
||||||
"@babel/plugin-proposal-export-default-from": "7.5.2",
|
"@babel/plugin-proposal-export-default-from": "7.7.4",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "7.5.2",
|
"@babel/plugin-proposal-export-namespace-from": "7.7.4",
|
||||||
"@babel/plugin-proposal-function-bind": "^7.2.0",
|
"@babel/plugin-proposal-function-bind": "7.7.4",
|
||||||
"@babel/plugin-proposal-function-sent": "7.7.0",
|
"@babel/plugin-proposal-function-sent": "7.7.4",
|
||||||
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
"@babel/plugin-proposal-json-strings": "7.7.4",
|
||||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
|
"@babel/plugin-proposal-logical-assignment-operators": "7.7.4",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.4.4",
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.7.4",
|
||||||
"@babel/plugin-proposal-numeric-separator": "^7.2.0",
|
"@babel/plugin-proposal-numeric-separator": "7.7.4",
|
||||||
"@babel/plugin-proposal-optional-chaining": "7.6.0",
|
"@babel/plugin-proposal-optional-chaining": "7.7.4",
|
||||||
"@babel/plugin-proposal-pipeline-operator": "7.5.0",
|
"@babel/plugin-proposal-pipeline-operator": "7.7.4",
|
||||||
"@babel/plugin-proposal-throw-expressions": "^7.2.0",
|
"@babel/plugin-proposal-throw-expressions": "7.7.4",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
"@babel/plugin-syntax-dynamic-import": "7.7.4",
|
||||||
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
"@babel/plugin-syntax-import-meta": "7.7.4",
|
||||||
"@babel/plugin-transform-member-expression-literals": "^7.2.0",
|
"@babel/plugin-transform-member-expression-literals": "7.7.4",
|
||||||
"@babel/plugin-transform-property-literals": "^7.2.0",
|
"@babel/plugin-transform-property-literals": "7.7.4",
|
||||||
"@babel/polyfill": "7.7.0",
|
"@babel/polyfill": "7.7.0",
|
||||||
"@babel/preset-env": "7.7.1",
|
"@babel/preset-env": "7.7.4",
|
||||||
"@babel/preset-flow": "^7.0.0",
|
"@babel/preset-flow": "7.7.4",
|
||||||
"@babel/preset-react": "7.7.0",
|
"@babel/preset-react": "7.7.4",
|
||||||
"@sambego/storybook-state": "^1.3.6",
|
"@sambego/storybook-state": "^1.3.6",
|
||||||
"@storybook/addon-actions": "5.2.6",
|
"@storybook/addon-actions": "5.2.6",
|
||||||
"@storybook/addon-knobs": "5.2.6",
|
"@storybook/addon-knobs": "5.2.6",
|
||||||
|
@ -116,14 +116,14 @@
|
||||||
"detect-port": "^1.3.0",
|
"detect-port": "^1.3.0",
|
||||||
"eslint": "5.16.0",
|
"eslint": "5.16.0",
|
||||||
"eslint-config-airbnb": "18.0.1",
|
"eslint-config-airbnb": "18.0.1",
|
||||||
"eslint-plugin-flowtype": "4.4.1",
|
"eslint-plugin-flowtype": "4.5.2",
|
||||||
"eslint-plugin-import": "2.18.2",
|
"eslint-plugin-import": "2.18.2",
|
||||||
"eslint-plugin-jest": "23.0.4",
|
"eslint-plugin-jest": "23.0.4",
|
||||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||||
"eslint-plugin-react": "7.16.0",
|
"eslint-plugin-react": "7.16.0",
|
||||||
"ethereumjs-abi": "0.6.8",
|
"ethereumjs-abi": "0.6.8",
|
||||||
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
||||||
"file-loader": "4.2.0",
|
"file-loader": "4.3.0",
|
||||||
"flow-bin": "0.112.0",
|
"flow-bin": "0.112.0",
|
||||||
"fs-extra": "8.1.0",
|
"fs-extra": "8.1.0",
|
||||||
"html-loader": "^0.5.5",
|
"html-loader": "^0.5.5",
|
||||||
|
@ -141,11 +141,11 @@
|
||||||
"storybook-host": "5.1.0",
|
"storybook-host": "5.1.0",
|
||||||
"storybook-router": "^0.3.4",
|
"storybook-router": "^0.3.4",
|
||||||
"style-loader": "1.0.0",
|
"style-loader": "1.0.0",
|
||||||
"truffle": "5.1.0",
|
"truffle": "5.1.1",
|
||||||
"truffle-contract": "4.0.31",
|
"truffle-contract": "4.0.31",
|
||||||
"truffle-solidity-loader": "0.1.32",
|
"truffle-solidity-loader": "0.1.32",
|
||||||
"uglifyjs-webpack-plugin": "2.2.0",
|
"uglifyjs-webpack-plugin": "2.2.0",
|
||||||
"url-loader": "2.2.0",
|
"url-loader": "2.3.0",
|
||||||
"webpack": "4.41.2",
|
"webpack": "4.41.2",
|
||||||
"webpack-bundle-analyzer": "3.6.0",
|
"webpack-bundle-analyzer": "3.6.0",
|
||||||
"webpack-cli": "3.3.10",
|
"webpack-cli": "3.3.10",
|
||||||
|
|
|
@ -3,12 +3,15 @@ import 'babel-polyfill'
|
||||||
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
|
import { BigNumber } from 'bignumber.js'
|
||||||
import Root from '~/components/Root'
|
import Root from '~/components/Root'
|
||||||
import { store } from '~/store'
|
import { store } from '~/store'
|
||||||
import loadSafesFromStorage from '~/routes/safe/store/actions/loadSafesFromStorage'
|
import loadSafesFromStorage from '~/routes/safe/store/actions/loadSafesFromStorage'
|
||||||
import loadActiveTokens from '~/logic/tokens/store/actions/loadActiveTokens'
|
import loadActiveTokens from '~/logic/tokens/store/actions/loadActiveTokens'
|
||||||
import loadDefaultSafe from '~/routes/safe/store/actions/loadDefaultSafe'
|
import loadDefaultSafe from '~/routes/safe/store/actions/loadDefaultSafe'
|
||||||
|
|
||||||
|
BigNumber.set({ EXPONENTIAL_AT: [-7, 50] })
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
||||||
|
|
Loading…
Reference in New Issue