-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
fix: patch deal2 prank (#230)
* fix: patch common testbase * fix: cleanup * fix: ci should not be cancelled by other pr
Showing
3 changed files
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import 'forge-std/Test.sol'; | ||
import {CommonTestBase} from '../src/CommonTestBase.sol'; | ||
import {AaveV2EthereumAssets} from 'aave-address-book/AaveV2Ethereum.sol'; | ||
|
||
contract CommonTestBaseTest is CommonTestBase { | ||
function setUp() public { | ||
vm.createSelectFork('mainnet', 18572478); | ||
} | ||
|
||
function call() external returns (address) { | ||
return msg.sender; | ||
} | ||
|
||
function test_deal2_shouldMaintainCurrentCaller() public { | ||
assertEq(this.call(), address(this)); | ||
deal2(AaveV2EthereumAssets.USDC_UNDERLYING, address(this), 100e6); | ||
assertEq(this.call(), address(this)); | ||
} | ||
} |
6881c76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foundry report
Build log
Test success 🌈