Skip to content

Commit

Permalink
fix settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Sep 20, 2024
1 parent 7002609 commit 78b08e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/SettingsUpgradeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ getInvokeTx(PublicKey const& publicKey, LedgerKey const& contractCodeLedgerKey,
contractCodeLedgerKey};
invokeResources.footprint.readWrite = {upgrade};
invokeResources.instructions = 2'000'000;
invokeResources.readBytes = 3000;
invokeResources.writeBytes = 3000;
invokeResources.readBytes = 3200;
invokeResources.writeBytes = 3200;

tx.ext.v(1);
tx.ext.sorobanData().resources = invokeResources;
Expand Down
4 changes: 2 additions & 2 deletions src/transactions/test/InvokeHostFunctionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2849,8 +2849,8 @@ TEST_CASE("settings upgrade command line utils", "[tx][soroban][upgrades]")
// mAverageBucketListSize
modifySorobanNetworkConfig(*app, [](SorobanNetworkConfig& cfg) {
cfg.mStateArchivalSettings.bucketListWindowSamplePeriod = 1;
// This is required to allow for an upgrade of all settings at once.
cfg.mMaxContractDataEntrySizeBytes = 3000;
// These are required to allow for an upgrade of all settings at once.
cfg.mMaxContractDataEntrySizeBytes = 3200;
});

const int64_t startingBalance =
Expand Down

0 comments on commit 78b08e2

Please sign in to comment.