slither icon indicating copy to clipboard operation
slither copied to clipboard

Failed to generate IR for L2UsdcBridge.onlyEOA.

Open xxeonge opened this issue 1 year ago • 3 comments

Hello. i need some help about solving the errors.

The error message "Failed to generate IR for L2UsdcBridge.onlyEOA." seems to occur during the import process of libraries/Address.sol in the modifier onlyEOA() function at line 97 of L2UsdcBridge.sol. How should I resolve this error?

Here are the links that I'm having this issue:

USDC/libraries/Address.sol: https://github.com/tokamak-network/tokamak-titan-canyon/blob/OR-1397-titan-canyon-unify-USDC.e-USDC-bridge-into-tokamak-contracts-bedrock-src-L2-tokamak/packages/tokamak/contracts-bedrock/src/L2-tokamak/USDC/libraries/Address.sol

USDC/usdc-bridge-contracts/L2UsdcBridge.sol: https://github.com/tokamak-network/tokamak-titan-canyon/blob/OR-1397-titan-canyon-unify-USDC.e-USDC-bridge-into-tokamak-contracts-bedrock-src-L2-tokamak/packages/tokamak/contracts-bedrock/src/L2-tokamak/USDC/usdc-bridge-contracts/L2UsdcBridge.sol

Here is the error messeage and the slither version is 0.10.0. --ignore-compile used, if something goes wrong, consider removing the ignore compile flag ERROR:SlitherSolcParsing: Failed to generate IR for L2UsdcBridge.onlyEOA. Please open an issue https://github.com/crytic/slither/issues. L2UsdcBridge.onlyEOA (src/L2-tokamak/USDC/usdc-bridge-contracts/L2UsdcBridge.sol#92-98): require(bool,string)(! Address.isContract(msg.sender),StandardBridge: function can only be called from an EOA)

Thank you so much!

xxeonge avatar Mar 26 '24 04:03 xxeonge

Could you try it without --ignore-compile and see if the issue still persists please?

0xalpharush avatar Mar 26 '24 19:03 0xalpharush

Despite everything working perfectly as expected without the --ignore-compile option, but its necessity arises due to the complexity of the repository being built.

xxeonge avatar Mar 27 '24 08:03 xxeonge

@xxeonge I think @AaronLee22 got it worked here: https://github.com/crytic/slither/issues/2354#issuecomment-1982242185

0xalpharush avatar Apr 05 '24 14:04 0xalpharush