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

The trait From<FPDecimal> for Uint256 is not implemented for FPDecimal #216

Open
Aursen opened this issue Mar 29, 2024 · 0 comments · May be fixed by #217
Open

The trait From<FPDecimal> for Uint256 is not implemented for FPDecimal #216

Aursen opened this issue Mar 29, 2024 · 0 comments · May be fixed by #217

Comments

@Aursen
Copy link
Contributor

Aursen commented Mar 29, 2024

For the moment, to get the Uint256 type from a FPDecimal, we need to use to_u256(). However, this is a bit restrictive when we need to convert several different types into Uint256 inside a macro, for example.

The solution would be to add just this feature to the structure

@Aursen Aursen changed the title The trait From<FPDecimal> is not implemented for Uint256 The trait From<FPDecimal> for Uint256 is not implemented for FPDecimal Mar 29, 2024
@Aursen Aursen linked a pull request Mar 29, 2024 that will close this issue
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 a pull request may close this issue.

1 participant