Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ op, stack }) =>
isCallMnemonic(op)
? //if it's a call, just fetch the address off the stack
CodecUtils.Conversion.toAddress(stack[stack.length - 2])
: //if it's not a call, just return undefined (we've gone back to
//skipping creates)
undefined
)
...Object.entries(instances).map(([address, { binary }]) => ({
[address]: CodecUtils.Conversion.toBytes(binary)
}))
)
((step || {}).stack || []).map(word =>
CodecUtils.Conversion.toBytes(word)
)