Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to generate IR for L2UsdcBridge.onlyEOA. #2377

Open
xxeonge opened this issue Mar 26, 2024 · 3 comments
Open

Failed to generate IR for L2UsdcBridge.onlyEOA. #2377

xxeonge opened this issue Mar 26, 2024 · 3 comments

Comments

@xxeonge
Copy link

xxeonge commented Mar 26, 2024

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!

@0xalpharush
Copy link
Member

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

@xxeonge
Copy link
Author

xxeonge commented Mar 27, 2024

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

@0xalpharush
Copy link
Member

@xxeonge I think @AaronLee22 got it worked here:
#2354 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants