Fix MethodDecoding for Arrays (#4977)

* Fix TypedInputs

* Remove unused code in inputQueries

* Use TypedInputs in Contract Events

* Linting

* Don't re-render events every second...
This commit is contained in:
Nicolas Gotchac
2017-03-21 17:02:41 +01:00
committed by Jaco Greeff
parent c7e6992239
commit 030d01102c
10 changed files with 64 additions and 108 deletions

View File

@@ -560,7 +560,7 @@ class MethodDecoding extends Component {
key={ index }
param={ input.type }
readOnly
value={ this.renderValue(input.value) }
value={ input.value }
/>
);
});
@@ -568,16 +568,6 @@ class MethodDecoding extends Component {
return inputs;
}
renderValue (value) {
const { api } = this.context;
if (api.util.isArray(value)) {
return api.util.bytesToHex(value);
}
return value.toString();
}
renderTokenValue (value) {
const { token } = this.props;