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

Add beacon primitives #9

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Add beacon primitives #9

wants to merge 1 commit into from

Conversation

vovac12
Copy link
Contributor

@vovac12 vovac12 commented Dec 30, 2022

No description provided.

@vovac12 vovac12 requested review from wer1st and N1ghtStorm December 30, 2022 08:33
D: serde::Deserializer<'de>,
{
let value = String::deserialize(deserializer)?;
let value = if value.len() > 1 && value[0..2] == *"0x" {
Copy link
Contributor

Choose a reason for hiding this comment

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

what if value.len() == 0 ?
In this case code goes to else section and we continue to work with empty address. Is it ok?

Copy link
Contributor

Choose a reason for hiding this comment

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

And should we validate the address length?

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