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
assert_valid_signature
🧐 Motivation
We have a few places where this code snippet is being used:
let is_valid_signature_felt = ISRC6Dispatcher { contract_address: voter } .is_valid_signature(hash, signature.into()); // 3. Check either 'VALID' or true for backwards compatibility let is_valid_signature = is_valid_signature_felt == starknet::VALIDATED || is_valid_signature_felt == 1; assert(is_valid_signature, Errors::INVALID_SIGNATURE);
We can refactor it into a single utility to avoid repeating it further.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🧐 Motivation
We have a few places where this code snippet is being used:
We can refactor it into a single utility to avoid repeating it further.
The text was updated successfully, but these errors were encountered: