Skip to content

Commit

Permalink
uses abi.encodeSelector for better type safety
Browse files Browse the repository at this point in the history
Signed-off-by: stadolf <[email protected]>
  • Loading branch information
elmariachi111 committed Jan 11, 2024
1 parent 1b9c739 commit daacb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Forking/TokenizerFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ contract TokenizerForkTest is Test {
vm.stopPrank();

vm.startPrank(mainnetOwner);
bytes memory upgradeCallData = abi.encodeWithSignature("setIPTokenImplementation(address)", address(newIPTokenImplementation));
bytes memory upgradeCallData = abi.encodeWithSelector(Tokenizer.setIPTokenImplementation.selector, address(newIPTokenImplementation));
tokenizer11.upgradeToAndCall(address(newTokenizerImplementation), upgradeCallData);
Tokenizer upgradedTokenizer = Tokenizer(mainnetTokenizer);

Expand Down

0 comments on commit daacb22

Please sign in to comment.