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

move Accounts::hash_message and make it static #588

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

blackghost1987
Copy link
Contributor

Account::hash_message is actually a static function, there's no point in having it under Accounts. It would be more convenient to be able to access this function without creating an Account and a Transport. I've kept the Accounts::hash_message function for backward compatibility reasons though.
I've moved hash_message to api/mod.rs as I haven't found a better place for it, but I'm open to suggestions. Is there already place for static functions like this under api somewhere?

Let me know if I need to do anything else, because this is my first contribution for this project!

src/api/mod.rs Outdated Show resolved Hide resolved
@tomusdrw
Copy link
Owner

tomusdrw commented Feb 2, 2022

Thanks a lot for the contribution and sorry for the delay with reviewing!

@blackghost1987
Copy link
Contributor Author

I think this is ready for merge

Copy link
Owner

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@tomusdrw tomusdrw merged commit 2c0286d into tomusdrw:master Feb 4, 2022
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.

2 participants