@terra-money/terra.js
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -102,14 +102,12 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var gasOptions, gasPrices, gasAdjustment, data; | ||
var gasPrices, gasAdjustment, txValue, data; | ||
return __generator(this, function (_a) { | ||
gasOptions = { | ||
gasPrices: this.lcd.config.gasPrices, | ||
gasAdjustment: this.lcd.config.gasAdjustment, | ||
}; | ||
gasOptions = __assign(__assign({}, gasOptions), options); | ||
gasPrices = gasOptions.gasPrices, gasAdjustment = gasOptions.gasAdjustment; | ||
gasPrices = (options === null || options === void 0 ? void 0 : options.gasPrices) || this.lcd.config.gasPrices; | ||
gasAdjustment = (options === null || options === void 0 ? void 0 : options.gasAdjustment) || this.lcd.config.gasAdjustment; | ||
txValue = __assign({}, (tx instanceof core_1.StdSignMsg | ||
? tx.toStdTx().toData().value | ||
: tx.toData().value)); | ||
txValue.fee.gas = '0'; | ||
data = { | ||
tx: tx instanceof core_1.StdSignMsg | ||
? tx.toStdTx().toData().value | ||
: tx.toData().value, | ||
tx: txValue, | ||
gas_prices: gasPrices && new core_1.Coins(gasPrices).toData(), | ||
@@ -116,0 +114,0 @@ gas_adjustment: gasAdjustment && gasAdjustment.toString(), |
@@ -85,3 +85,3 @@ "use strict"; | ||
if (!(fee === undefined)) return [3 /*break*/, 2]; | ||
stdTx = new core_1.StdTx(msgs, new core_1.StdFee(1, gasPrices), [], memo); | ||
stdTx = new core_1.StdTx(msgs, new core_1.StdFee(0, gasPrices), [], memo); | ||
return [4 /*yield*/, this.lcd.tx.estimateFee(stdTx)]; | ||
@@ -88,0 +88,0 @@ case 1: |
{ | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5792317
15011