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

Registries: Add tests for AuthorizationNotFound #547

Closed
wants to merge 4 commits into from

Conversation

muditDhiway
Copy link
Contributor

Tests have been added for AuthorizationNotFound

@muditDhiway muditDhiway requested a review from vatsa287 December 23, 2024 10:42
&[&registry_id.encode()[..], &creator.encode()[..], &creator.encode()[..]].concat()[..],
);

let gibberish_auth_id_digest = <Test as frame_system::Config>::Hashing::hash(&gibberish[..]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do it like below?

let non_existent_auth_id_digest = <Test as frame_system::Config>::Hashing::hash(
		&[&registry_id.encode()[..]],
	);

Instead of using the bytes.

@vatsa287 vatsa287 changed the title Fixes #544 Registries: Add tests for AuthorizationNotFound Dec 30, 2024
@vatsa287 vatsa287 requested review from amarts and vatsa287 December 30, 2024 11:57
Copy link
Member

@vatsa287 vatsa287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amarts
Copy link
Member

amarts commented Jan 2, 2025

ah! i see a conflict now. Can you rebase?

@vatsa287 vatsa287 closed this Jan 20, 2025
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

Successfully merging this pull request may close these issues.

3 participants