"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.eip1559 = void 0;
var tslib_1 = require("tslib");
var utils_1 = require("../../utils");
var ethereum = tslib_1.__importStar(require("./ethereum"));
function eip1559(provider, opts) {
    return tslib_1.__awaiter(this, void 0, void 0, function () {
        var _a, _maxFeePerGas, maxPriorityFeePerGas, maxFeePerGas;
        return tslib_1.__generator(this, function (_b) {
            switch (_b.label) {
                case 0: return [4, ethereum.eip1559(provider, opts)];
                case 1:
                    _a = _b.sent(), _maxFeePerGas = _a.maxFeePerGas, maxPriorityFeePerGas = _a.maxPriorityFeePerGas;
                    maxFeePerGas = _maxFeePerGas.sub(maxPriorityFeePerGas).add(utils_1.bnOne);
                    return [2, { maxPriorityFeePerGas: utils_1.bnOne, maxFeePerGas: maxFeePerGas }];
            }
        });
    });
}
exports.eip1559 = eip1559;
//# sourceMappingURL=arbitrum.js.map