"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.maybeTezosAccountUnrevealedAccount = void 0;
const maybeTezosAccountUnrevealedAccount = (swapTransaction) => {
    if (swapTransaction?.transaction?.family == "tezos" &&
        swapTransaction?.transaction?.estimatedFees &&
        !swapTransaction?.transaction?.fees?.eq(swapTransaction?.transaction?.estimatedFees)) {
        const tezosError = new Error("Cannot swap with an unrevealed Tezos account");
        tezosError.name = "TezosUnrevealedAccount";
        return tezosError;
    }
};
exports.maybeTezosAccountUnrevealedAccount = maybeTezosAccountUnrevealedAccount;
//# sourceMappingURL=maybeTezosAccountUnrevealedAccount.js.map