|
|
|
@ -22,7 +22,13 @@ class DataCollector { |
|
|
|
|
try { |
|
|
|
|
if (this.validOpcodes[info.opcode.name] && info.stack.length > 0){ |
|
|
|
|
const idx = info.stack.length - 1; |
|
|
|
|
let hash = web3Utils.toHex(info.stack[idx]).toString(); |
|
|
|
|
|
|
|
|
|
let hash; |
|
|
|
|
if (typeof info.stack[idx] === 'bigint') { |
|
|
|
|
hash = '0x' + info.stack[idx].toString(16); |
|
|
|
|
} else { |
|
|
|
|
hash = web3Utils.toHex(info.stack[idx]).toString(); |
|
|
|
|
} |
|
|
|
|
this._registerHash(hash) |
|
|
|
|
} |
|
|
|
|
} catch (err) { /*Ignore*/ }; |
|
|
|
|