You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
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>()))
The text was updated successfully, but these errors were encountered:
Hello,
I am getting this error while building this repo:-
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>()))
The text was updated successfully, but these errors were encountered: