From daacb221b83fba14eb2361e9b86c59a2e995f651 Mon Sep 17 00:00:00 2001 From: stadolf Date: Thu, 11 Jan 2024 18:57:03 +0100 Subject: [PATCH] uses abi.encodeSelector for better type safety Signed-off-by: stadolf --- test/Forking/TokenizerFork.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Forking/TokenizerFork.t.sol b/test/Forking/TokenizerFork.t.sol index cec0793a..9a5bb4e9 100644 --- a/test/Forking/TokenizerFork.t.sol +++ b/test/Forking/TokenizerFork.t.sol @@ -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);