UNPKG

@taquito/michel-codec

Version:

Michelson parser, validator, and formatter for Taquito.

13 lines (12 loc) 398 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.expandGlobalConstants = expandGlobalConstants; function expandGlobalConstants(ex, hashAndValue) { if (ex.args !== undefined && ex.args.length === 1 && 'string' in ex.args[0] && ex.args[0].string in hashAndValue) { return hashAndValue[ex.args[0].string]; } return ex; }