@@ -1947,13 +1947,13 @@ TransactionFrame::apply(AppConnector& app, AbstractLedgerTxn& ltx,
1947
1947
// we'll skip trying to apply operations but we'll still
1948
1948
// process the sequence number if needed
1949
1949
std::optional<FeePair> sorobanResourceFee;
1950
- std::optional<SorobanNetworkConfig> sorobanConfig ;
1950
+ AppValidationWrapper avw (app, true ) ;
1951
1951
if (protocolVersionStartsFrom (ledgerVersion,
1952
1952
SOROBAN_PROTOCOL_VERSION) &&
1953
1953
isSoroban ())
1954
1954
{
1955
1955
sorobanResourceFee = computePreApplySorobanResourceFee (
1956
- ledgerVersion, *sorobanConfig , app.getConfig ());
1956
+ ledgerVersion, avw. getSorobanNetworkConfig () , app.getConfig ());
1957
1957
1958
1958
auto & sorobanData = *txResult->getSorobanData ();
1959
1959
sorobanData.setSorobanConsumedNonRefundableFee (
@@ -1964,7 +1964,6 @@ TransactionFrame::apply(AppConnector& app, AbstractLedgerTxn& ltx,
1964
1964
}
1965
1965
LedgerTxn ltxTx (ltx);
1966
1966
LedgerSnapshot ltxStmt (ltxTx);
1967
- AppValidationWrapper avw (app, true );
1968
1967
auto cv = commonValid (avw, *signatureChecker, ltxStmt, 0 , true ,
1969
1968
chargeFee, 0 , 0 , sorobanResourceFee, txResult);
1970
1969
if (cv >= ValidationType::kInvalidUpdateSeqNum )
0 commit comments