diff --git a/common/containers/Tabs/Contracts/components/Deploy/index.tsx b/common/containers/Tabs/Contracts/components/Deploy/index.tsx
index d3954dd4209..ee3fccc861e 100644
--- a/common/containers/Tabs/Contracts/components/Deploy/index.tsx
+++ b/common/containers/Tabs/Contracts/components/Deploy/index.tsx
@@ -5,7 +5,6 @@ import { deployHOC } from './components/DeployHoc';
import { TTxCompare } from '../TxCompare';
import { TTxModal } from '../TxModal';
import classnames from 'classnames';
-import { addProperties } from 'utils/helpers';
import { isValidGasPrice, isValidByteCode } from 'libs/validators';
export interface Props {
@@ -72,7 +71,7 @@ const Deploy = (props: Props) => {
diff --git a/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx b/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx
index eb2b712c564..d42383d5250 100644
--- a/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx
+++ b/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx
@@ -8,7 +8,6 @@ import WalletDecrypt from 'components/WalletDecrypt';
import { TShowNotification } from 'actions/notifications';
import classnames from 'classnames';
import { isValidGasPrice, isValidValue } from 'libs/validators';
-import { addProperties } from 'utils/helpers';
export interface Props {
contractFunctions: any;
@@ -157,7 +156,9 @@ export default class InteractExplorer extends Component {
className={classnames(
'InteractExplorer-field-input',
'form-control',
- { 'is-invalid': !validGasLimit }
+ {
+ 'is-invalid': !validGasLimit
+ }
)}
/>
@@ -171,16 +172,16 @@ export default class InteractExplorer extends Component {
className={classnames(
'InteractExplorer-field-input',
'form-control',
- { 'is-invalid': !validValue }
+ {
+ 'is-invalid': !validValue
+ }
)}
/>
diff --git a/common/containers/Tabs/Contracts/components/Interact/components/InteractForm/index.tsx b/common/containers/Tabs/Contracts/components/Interact/components/InteractForm/index.tsx
index fa72a92efd0..e8516a1ee9f 100644
--- a/common/containers/Tabs/Contracts/components/Interact/components/InteractForm/index.tsx
+++ b/common/containers/Tabs/Contracts/components/Interact/components/InteractForm/index.tsx
@@ -6,7 +6,6 @@ import { getNetworkContracts } from 'selectors/config';
import { connect } from 'react-redux';
import { AppState } from 'reducers';
import { isValidETHAddress, isValidAbiJson } from 'libs/validators';
-import { addProperties } from 'utils/helpers';
import classnames from 'classnames';
interface Props {
@@ -77,7 +76,9 @@ e":"a", "type":"uint256"}], "name":"foo", "outputs": [] }]';
className={classnames(
'InteractForm-address-field-input',
'form-control',
- { 'is-invalid': !validEthAddress }
+ {
+ 'is-invalid': !validEthAddress
+ }
)}
onChange={this.handleInput('address')}
/>
@@ -110,7 +111,9 @@ e":"a", "type":"uint256"}], "name":"foo", "outputs": [] }]';
className={classnames(
'InteractForm-interface-field-input',
'form-control',
- { 'is-invalid': !validAbiJson }
+ {
+ 'is-invalid': !validAbiJson
+ }
)}
onChange={this.handleInput('abiJson')}
value={abiJson}
@@ -122,9 +125,7 @@ e":"a", "type":"uint256"}], "name":"foo", "outputs": [] }]';
diff --git a/common/utils/helpers.ts b/common/utils/helpers.ts
index cb649063642..16ad445ffcc 100644
--- a/common/utils/helpers.ts
+++ b/common/utils/helpers.ts
@@ -2,13 +2,6 @@ export function getKeyByValue(object, value) {
return Object.keys(object).find(key => object[key] === value);
}
-interface IKeyedObj {
- [key: string]: any;
-}
-export const addProperties = (
- truthy,
- propertiesToAdd: IKeyedObj
-): {} | IKeyedObj => (truthy ? propertiesToAdd : {});
export function getParam(query: { [key: string]: string }, key: string) {
const keys = Object.keys(query);
const index = keys.findIndex(k => k.toLowerCase() === key.toLowerCase());