Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Build is failing #85

Closed
jaxter03 opened this issue Feb 26, 2021 · 0 comments · Fixed by #86
Closed

Build is failing #85

jaxter03 opened this issue Feb 26, 2021 · 0 comments · Fixed by #86

Comments

@jaxter03
Copy link
Contributor

Hello,
I am getting this error while building this repo:-

error[E0283]: type annotations needed
  --> example-pallet/src/lib.rs:80:85
   |
80 |             <bridge::Module<T>>::transfer_fungible(dest_id, resource_id, recipient, U256::from(amount.saturated_into()))
   |                                                                                     ^^^^^^^^^^ cannot infer type for type parameter `T` declared on the trait `From`
   |
   = note: cannot satisfy `U256: From<_>`
   = note: required by `std::convert::From::from`

I think if we add with saturated into then it will work something like this:-
<bridge::Module<T>>::transfer_fungible(dest_id, resource_id, recipient, U256::from(amount.saturated_into::<u128>()))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant