Skip to content

Commit ab96235

Browse files
committed
Fix missing soroban network config issue
This is what was breaking catchup
1 parent 5c77e4d commit ab96235

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/transactions/TransactionFrame.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,13 +1947,13 @@ TransactionFrame::apply(AppConnector& app, AbstractLedgerTxn& ltx,
19471947
// we'll skip trying to apply operations but we'll still
19481948
// process the sequence number if needed
19491949
std::optional<FeePair> sorobanResourceFee;
1950-
std::optional<SorobanNetworkConfig> sorobanConfig;
1950+
AppValidationWrapper avw(app, true);
19511951
if (protocolVersionStartsFrom(ledgerVersion,
19521952
SOROBAN_PROTOCOL_VERSION) &&
19531953
isSoroban())
19541954
{
19551955
sorobanResourceFee = computePreApplySorobanResourceFee(
1956-
ledgerVersion, *sorobanConfig, app.getConfig());
1956+
ledgerVersion, avw.getSorobanNetworkConfig(), app.getConfig());
19571957

19581958
auto& sorobanData = *txResult->getSorobanData();
19591959
sorobanData.setSorobanConsumedNonRefundableFee(
@@ -1964,7 +1964,6 @@ TransactionFrame::apply(AppConnector& app, AbstractLedgerTxn& ltx,
19641964
}
19651965
LedgerTxn ltxTx(ltx);
19661966
LedgerSnapshot ltxStmt(ltxTx);
1967-
AppValidationWrapper avw(app, true);
19681967
auto cv = commonValid(avw, *signatureChecker, ltxStmt, 0, true,
19691968
chargeFee, 0, 0, sorobanResourceFee, txResult);
19701969
if (cv >= ValidationType::kInvalidUpdateSeqNum)

0 commit comments

Comments
 (0)