Skip to content

Commit

Permalink
spell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatMe1on committed Dec 11, 2024
1 parent fbcc38f commit 04bd502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion test/unit/RaffleTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 04bd502

Please sign in to comment.