How to use the @truffle/codec.Utils.Conversion function in @truffle/codec

To help you get started, we’ve selected a few @truffle/codec examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trufflesuite / truffle / packages / debugger / lib / trace / sagas / index.js View on Github external
({ 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
        )
github trufflesuite / truffle / packages / debugger / lib / data / selectors / index.js View on Github external
...Object.entries(instances).map(([address, { binary }]) => ({
          [address]: CodecUtils.Conversion.toBytes(binary)
        }))
      )
github trufflesuite / truffle / packages / debugger / lib / data / selectors / index.js View on Github external
((step || {}).stack || []).map(word =>
            CodecUtils.Conversion.toBytes(word)
          )