How to use the @truffle/codec.Utils.ContextUtils 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 / evm / reducers.js View on Github external
binary,
            sourceMap,
            primarySource,
            compiler,
            abi,
            contractId,
            contractKind,
            isConstructor,
            payable: CodecUtils.AbiUtils.abiHasPayableFallback(abi)
          }
        }
      };

    case actions.NORMALIZE_CONTEXTS:
      return {
        byContext: CodecUtils.ContextUtils.normalizeContexts(state.byContext)
      };

    /*
     * Default case
     */
    default:
      return state;
  }
}