diff --git a/packages/embark-ui/src/components/ContractTransactions.js b/packages/embark-ui/src/components/ContractTransactions.js index ec50329af..5590ea311 100644 --- a/packages/embark-ui/src/components/ContractTransactions.js +++ b/packages/embark-ui/src/components/ContractTransactions.js @@ -22,9 +22,7 @@ class ContractTransactions extends React.Component { return []; } - return this.props.contract.abiDefinition.filter(method => ( - method.name !== CONSTRUCTOR && method.mutability !== VIEW && method.mutability !== PURE && method.constant !== true && method.type === FUNCTION - )); + return this.props.contract.abiDefinition.filter(method => method.mutability !== VIEW && method.mutability !== PURE && method.constant !== true && (method.type === FUNCTION || method.type === CONSTRUCTOR)); } getEvents() { @@ -67,8 +65,8 @@ class ContractTransactions extends React.Component { this.updateState('method', event.target.value)} value={this.state.method}> - - {this.getMethods().map((method, index) => )} + )} @@ -109,7 +107,7 @@ class ContractTransactions extends React.Component { - +
Call Events Gas Used