crytic / slither-action

GNU Affero General Public License v3.0
127 stars 19 forks source link

Hello! I need some help about Failed to generate IR for some contracts. #79

Closed xxeonge closed 5 months ago

xxeonge commented 5 months ago

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!

elopez commented 5 months ago

Closing in favor of crytic/slither#2377 as this is an issue on Slither itself and not something specific to the action.