Bringing back js-sha3 to fix in-browser signing (#4063)
* Bring back Uint8Array sha3 support * Added SHA3 test with HEX encoding * Rename hex2Ascii => hexToAscii Add tests or the api/util/format functions Use js-sha3 for sha3 with hex encoding support * Adding Uint8Array test * Fixing Transaction import
This commit is contained in:
committed by
Jaco Greeff
parent
52d3633473
commit
f6349187ef
@@ -167,7 +167,7 @@ class MethodDecoding extends Component {
|
||||
getAscii () {
|
||||
const { api } = this.context;
|
||||
const { transaction } = this.props;
|
||||
const ascii = api.util.hex2Ascii(transaction.input || transaction.data);
|
||||
const ascii = api.util.hexToAscii(transaction.input || transaction.data);
|
||||
|
||||
return { value: ascii, valid: ASCII_INPUT.test(ascii) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user