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
Issue: Why is crate::sui_types::id::UID::new not const?
It should be const fn because ObjectID and AccountAddress can be constructed in const context and UID is a wrapper around ObjectID, hence it must be able to be constructed in the const context.
Furthermore, it appears in crate::sui_types::coin::CoinMetadata struct, and since it is 'metadata', it should be able to be constructed in const context too!
The text was updated successfully, but these errors were encountered:
sui/crates/sui-types/src/id.rs
Line 38 in 69d3653
Issue: Why is
crate::sui_types::id::UID::new
notconst
?It should be
const fn
becauseObjectID
andAccountAddress
can be constructed inconst
context andUID
is a wrapper aroundObjectID
, hence it must be able to be constructed in theconst
context.Furthermore, it appears in
crate::sui_types::coin::CoinMetadata
struct, and since it is 'metadata', it should be able to be constructed inconst
context too!The text was updated successfully, but these errors were encountered: