use encodeCall vs encodeWithSelector (#414)

This commit is contained in:
The Dark Jester
2025-01-06 10:33:55 +00:00
committed by GitHub
parent 448a4f4db9
commit 94fc031fce

View File

@@ -48,7 +48,7 @@ abstract contract ZkEvmV2 is AccessControlUpgradeable, L1MessageServiceV1, IZkEv
}
(bool callSuccess, bytes memory result) = verifierToUse.call(
abi.encodeWithSelector(IPlonkVerifier.Verify.selector, _proof, publicInput)
abi.encodeCall(IPlonkVerifier.Verify, (_proof, publicInput))
);
if (!callSuccess) {