-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Use >=32
instead of ==32
in SignatureChecker
for return data length check
#4035
Comments
>=32
instead of ==32
in SignatureChecker
>=32
instead of ==32
in SignatureChecker
for return data length check
@pcaversaccio can you please assign this issue to me. |
I'm not part of the OZ team :-D. Cc: @Amxx |
@HarshitSharma007 Feel free to submit a PR. |
I agree we should have consistency, but I wonder why it should be on >=32 and not on ==32 |
My reasoning for >= 32 is that |
This comment was marked as spam.
This comment was marked as spam.
Can you please assign this issue to me?? |
@Eren-Yeaager the issue is already resolved (pending merge) via PR: #4038. |
ok
…On Fri, Feb 24, 2023 at 8:35 PM Francisco ***@***.***> wrote:
Closed #4035
<#4035> as
completed via #4038
<#4038>.
—
Reply to this email directly, view it on GitHub
<#4035 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVXIKF3XKG4RGV4ED5MYW7LWZDE5PANCNFSM6AAAAAAUUS56ZI>
.
You are receiving this because you were mentioned.Message ID:
<OpenZeppelin/openzeppelin-contracts/issue/4035/issue_event/8602835532@
github.com>
|
@frangio @pcaversaccio could either of you help provide more context on this change? ERC1271 specifies that the return value must be the bytes4 magic value |
|
In the
ERC4626
function_tryGetAssetDecimals
you use the following pattern with respect to the return data length check:In the function
isValidSignatureNow
you useresult.length == 32
instead for the return data length check. I think it would make sense due to consistency to also useresult.length >= 32
in that case. FYI, I already discussed this issue with @frangio over Discord.The text was updated successfully, but these errors were encountered: