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

Fix docs for string/hex string literal conversion to bytesNN #15002

Conversation

pcw109550
Copy link
Contributor

Implicit/Explicit conversion from string/hex string literals to bytesNNs are allowed. hex_string_to_bytesNN_different_size_explicit.sol shows that these conversions are allowed.

Fixed wrong documentation of type conversion.

Added test case for checking implicit conversion from string/hex string literals to bytesNNs.

Copy link

github-actions bot commented Apr 9, 2024

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

@pcw109550 pcw109550 force-pushed the pcw109550/docs-fix-string-literal-conversion-to-bytesXX branch from 276b3dd to c76f3b7 Compare April 12, 2024 03:06
Copy link
Collaborator

@nikola-matic nikola-matic left a comment

Choose a reason for hiding this comment

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

Hi @pcw109550, please squash the commits into one when you address my comments, and we should be able to merge then.

docs/types/conversion.rst Outdated Show resolved Hide resolved
docs/types/conversion.rst Outdated Show resolved Hide resolved
docs/types/conversion.rst Show resolved Hide resolved
@pcw109550 pcw109550 force-pushed the pcw109550/docs-fix-string-literal-conversion-to-bytesXX branch 2 times, most recently from 41f8bb3 to 3444ff4 Compare April 17, 2024 05:12
@pcw109550 pcw109550 force-pushed the pcw109550/docs-fix-string-literal-conversion-to-bytesXX branch from 3444ff4 to 04b220d Compare April 17, 2024 15:17
Copy link
Collaborator

@nikola-matic nikola-matic left a comment

Choose a reason for hiding this comment

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

Thanks @pcw109550

@nikola-matic nikola-matic merged commit 37d4533 into ethereum:develop Apr 17, 2024
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants