We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have an amount in Uint128 and want to use Coin::new, you need to converte to u128 and back to Uint128:
Uint128
Coin::new
// incentive_amount: Uint128 Coin::new(incentive_amount.into(), incentive_denom)
Changing the API to
pub fn new(amount: impl Into<Uint128>, denom: impl Into<String>) -> Self {
would be more straight forward.
The text was updated successfully, but these errors were encountered:
impl Into<_>
Coin
Successfully merging a pull request may close this issue.
If you have an amount in
Uint128
and want to useCoin::new
, you need to converte to u128 and back to Uint128:Changing the API to
would be more straight forward.
The text was updated successfully, but these errors were encountered: