diff --git a/README.md b/README.md index 2360e3f..4958af9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ ## About -This repositories if for foundry study (Thanks Patrick Collins the youtuber who provide the course a lot!) +This repositories is for foundry study (Thanks Patrick Collins the youtuber who provide the course a lot!) course source: https://github.com/Cyfrin/foundry-full-course-cu diff --git a/test/unit/RaffleTest.t.sol b/test/unit/RaffleTest.t.sol index 1b1f82a..a16aab4 100644 --- a/test/unit/RaffleTest.t.sol +++ b/test/unit/RaffleTest.t.sol @@ -335,11 +335,12 @@ contract ToolTest is Test { //3way to get a function's selector (case1's 'this' can be replace to a instance of a contract); - function testEncoderWithSelector() public pure { + function testEncoderWithSelector() public view { bytes4 output1 = this.testCastMultiFlag.selector; bytes4 output2 = bytes4(keccak256("testCastMultiFlag()")); bytes4 output3 = bytes4(abi.encodeWithSignature("testCastMultiFlag()")); + console.log(address(this)); assertEq(output1, output2); assertEq(output3, output2); }