This commit is contained in:
maciejhirsz
2017-04-04 11:49:36 +02:00
parent 50e0221dd1
commit 94bfe116aa
6 changed files with 10 additions and 10 deletions

View File

@@ -17,7 +17,7 @@
import { range } from 'lodash';
export function bytesToHex (bytes) {
return '0x' + bytes.map((b) => ('0' + b.toString(16)).slice(-2)).join('');
return '0x' + Buffer.from(bytes).toString('hex');
}
export function cleanupValue (value, type) {