UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

22 lines (20 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeploySenderAddress = void 0; const DiagnosticCode_1 = require("../../../../DiagnosticCode"); const DiagnosticMessage_1 = require("../../../../DiagnosticMessage"); const BuiltinMemberValue_1 = require("../../BuiltinMemberValue"); const isConstructorParameterDefault_1 = require("./isConstructorParameterDefault"); class DeploySenderAddress extends BuiltinMemberValue_1.BuiltinMemberValue { emit(sb, node, options) { if (!isConstructorParameterDefault_1.isConstructorParameterDefault(node)) { sb.context.reportError(node, DiagnosticCode_1.DiagnosticCode.InvalidSenderAddress, DiagnosticMessage_1.DiagnosticMessage.InvalidSenderAddressParameterUsage); } if (options.pushValue) { sb.emitPushBuffer(node, Buffer.alloc(20, 0)); sb.emitHelper(node, options, sb.helpers.wrapBuffer); } } } exports.DeploySenderAddress = DeploySenderAddress; //# sourceMappingURL=senderAddress.js.map