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

v0.0.8 - Additional uint typecasting methods #28

Merged
merged 30 commits into from
Jun 26, 2019
Merged

v0.0.8 - Additional uint typecasting methods #28

merged 30 commits into from
Jun 26, 2019

Conversation

GNSPS
Copy link
Owner

@GNSPS GNSPS commented Jun 26, 2019

This new version introduces new unsigned interger typecasting methods (all the missing ones, actually)!

Thank you @bh2smith for the contribution!

Fixes #24

GNSPS and others added 30 commits January 25, 2018 00:03
Multiples of 32 bytes can now be safely sliced
Though I really like Nick Johnson's string library this has been built entirely by me (as opposed to what the NatSpec comment in the top said since the last commit 😄) I just copied the comment layout on top of his library and forgot to change the author 😂
* Add uint8, uint16, uint32

* Unit test for uint8, uint16, uint32
* (refactor) Changed codebase to Solidity v0.5.0

* Style changes
* Added `memory` everywhere to bytes and strings
* `target.call(data)` now returns a tuple

* Adding note about compiler support in the README + typo fix

* Replaced the ThrowProxy pattern for a better v0.5.x one

ThrowProxy was giving problems while testing with the JS-VM with the Constantinople hard-fork. So I changed the tests to stop using that pattern and use function selectors since that's now a thing.

It is cleaner now.
* include toUintXX for 64, 96 and 128 bits

* Update tests to follow same style as the others
@GNSPS GNSPS merged commit 0061b62 into master Jun 26, 2019
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.

[Feature] BytesLib.toUint(128 and/or 96)!
4 participants