Skip to content

Commit

Permalink
Set tx.gasprice in config rather than test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkaseman committed Sep 18, 2023
1 parent 62bb674 commit e1b7e9a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ block_number = 12345
solc_version = '0.8.19'
src = 'src/v0.8/functions'
test = 'src/v0.8/functions/tests'
gas_price = 3000000000

[profile.vrf]
optimizer_runs = 1000
Expand Down
2 changes: 1 addition & 1 deletion contracts/gas-snapshots/functions.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ FunctionsSubscriptions_OwnerCancelSubscription:test_OwnerCancelSubscription_Reve
FunctionsSubscriptions_OwnerCancelSubscription:test_OwnerCancelSubscription_Success() (gas: 54867)
FunctionsSubscriptions_OwnerCancelSubscription:test_OwnerCancelSubscription_SuccessDeletesSubscription() (gas: 48362)
FunctionsSubscriptions_OwnerCancelSubscription:test_OwnerCancelSubscription_SuccessSubOwnerRefunded() (gas: 50896)
FunctionsSubscriptions_OwnerCancelSubscription:test_OwnerCancelSubscription_SuccessWhenRequestInFlight() (gas: 163904)
FunctionsSubscriptions_OwnerCancelSubscription:test_OwnerCancelSubscription_SuccessWhenRequestInFlight() (gas: 163911)
FunctionsSubscriptions_OwnerWithdraw:test_OwnerWithdraw_RevertIfAmountMoreThanBalance() (gas: 17924)
FunctionsSubscriptions_OwnerWithdraw:test_OwnerWithdraw_RevertIfBalanceInvariant() (gas: 165)
FunctionsSubscriptions_OwnerWithdraw:test_OwnerWithdraw_RevertIfNotOwner() (gas: 15555)
Expand Down
1 change: 0 additions & 1 deletion contracts/src/v0.8/functions/tests/v1_0_0/BaseTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ contract BaseTest is Test {
s_baseTestInitialized = true;
// Set msg.sender to OWNER until stopPrank is called
vm.startPrank(OWNER_ADDRESS, OWNER_ADDRESS);
vm.txGasPrice(TX_GASPRICE_START);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {FunctionsClientTestHelper} from "./testhelpers/FunctionsClientTestHelper
import {FunctionsRouterSetup, FunctionsRoutesSetup, FunctionsSubscriptionSetup, FunctionsClientRequestSetup} from "./Setup.t.sol";

import "forge-std/Vm.sol";
import "forge-std/console.sol";

// ================================================================
// | Functions Router |
Expand Down

0 comments on commit e1b7e9a

Please sign in to comment.