Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public ToBigMapKey(val: any) {
const decoded = b58decode(val);
return {
key: { bytes: decoded },
type: { prim: 'bytes' },
};
}