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
On UDT types, currently there is a impl that converts to and from the underlying.
/// Convert from the underlying value type.#[inline]pubconstfnfrom(value: #underlying_rust) -> Self{Self(value)}/// Return the underlying value.#[inline]pubconstfninto(self) -> #underlying_rust{self.0}
However these functions conflict with regular into and from trait impl's. Currently this will just render them useless (the impl on the struct will always override the trait impls). I recommend changing the naming to, from_underlying and into_underlying
Additional context
No response
The text was updated successfully, but these errors were encountered:
Component
sol-types, sol! macro, syn-solidity
Describe the feature you would like
On UDT types, currently there is a impl that converts to and from the underlying.
However these functions conflict with regular
into
andfrom
trait impl's. Currently this will just render them useless (the impl on the struct will always override the trait impls). I recommend changing the naming to,from_underlying
andinto_underlying
Additional context
No response
The text was updated successfully, but these errors were encountered: