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 toInt256(uint256 x) #436

Merged
merged 3 commits into from May 27, 2023
Merged

Conversation

eugenioclrc
Copy link
Contributor

Description

Add function toInt256(uint256 x)
Converts an unsigned uint256 into a signed int256. Based on the OZ implementation SafeCast.sol#L1131

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge snapshot?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

@Vectorized Vectorized merged commit 86c16ee into Vectorized:main May 27, 2023
@eugenioclrc
Copy link
Contributor Author

My first collaboration... So much love so much happy
image

@Vectorized
Copy link
Owner

@eugenioclrc Much thanks!

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.

None yet

2 participants