UNPKG

@swaptoshi/governance-module

Version:

Klayr governance on-chain module

12 lines 569 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeBaseFee = executeBaseFee; async function executeBaseFee(context) { if (!this._feeMethod) return; const config = await this._config.getConfig(context); if (context.transaction.module === this.name && config.baseFee[context.transaction.command] && BigInt(config.baseFee[context.transaction.command]) > BigInt(0)) { this._feeMethod.payFee(context, BigInt(config.baseFee[context.transaction.command])); } } //# sourceMappingURL=executeBaseFee.js.map