Skip to content

Commit

Permalink
minor optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
burnto committed Jan 23, 2024
1 parent b7462d1 commit c3a0761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
src = "src"
out = "out"
libs = ["lib"]

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
via_ir = true

[profile.forked]
fork_block_number = 18814000
Expand All @@ -15,4 +14,4 @@ sepolia = "${SEPOLIA_RPC_URL}"

[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}" }
goerli = { key = "${ETHERSCAN_API_KEY}", chain = "goerli"}
sepolia = { key = "${ETHERSCAN_API_KEY}", chain = "sepolia"}
4 changes: 2 additions & 2 deletions src/Pizza.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {ReentrancyGuard} from "openzeppelin-contracts/utils/ReentrancyGuard.sol"
* It allows for the release of ERC20 tokens as well as Ether.
* Releases are modified to be only callable in a batch, rather than individually.
*/
contract Pizza is Initializable, Context, Multicall, ReentrancyGuard {
contract Pizza is Initializable, Multicall, ReentrancyGuard {
using SafeERC20 for IERC20;

/* ////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -193,7 +193,7 @@ contract Pizza is Initializable, Context, Multicall, ReentrancyGuard {
* balance is increased.
*/
receive() external payable virtual {
emit PaymentReceived(_msgSender(), msg.value);
emit PaymentReceived(msg.sender, msg.value);
}

/* ////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 0 additions & 1 deletion test/Pizza.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ contract PizzaTest is Test {
address[] memory bountyTokens = new address[](2);
bountyTokens[0] = address(token);
bountyTokens[1] = address(0);
address bountyDeployer = address(0x3);
address bountyReceiver = address(0x4);
token.transfer(address(predicted), 1e18);
vm.deal(payable(predicted), 2e18);
Expand Down

0 comments on commit c3a0761

Please sign in to comment.