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:
committed by
Jaco Greeff
parent
c7e6992239
commit
030d01102c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user