Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private fourBytesHash(method: string): FourBytes { return '0x' + keccak256(method).toString('hex').slice(0,8); }
A wrapper for the keccak library to compute 256 bit keccak hash in JavaScript