We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Details: In L129-137 of wfCashLogic.sol consider changing the code
require( ac.hasDebt == 0x00 && assets.length == 1 && EncodeDecode.encodeERC1155Id( assets[0].currencyId, assets[0].maturity, assets[0].assetType ) == fCashID );
to the following version without the && operator:
require(ac.hasDebt == 0x00); require(assets.length == 1); require(EncodeDecode.encodeERC1155Id( assets[0].currencyId, assets[0].maturity, assets[0].assetType == fCashID));
Note: This optimization can became invalid if an error message is added to require. Furthermore, consider using custom errors to save gas.
The text was updated successfully, but these errors were encountered:
Tadashi issue #231
9c4c254
No branches or pull requests
Split require to avoid using && opcode
Details: In L129-137 of wfCashLogic.sol consider changing the code
to the following version without the && operator:
Note: This optimization can became invalid if an error message is added to require. Furthermore, consider using custom errors to save gas.
The text was updated successfully, but these errors were encountered: