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
pubtraitEnvironment{/// The maximum number of supported event topics provided by the runtime.////// The value must match the maximum number of supported event topics of the used/// runtime.constMAX_EVENT_TOPICS:usize;/// The account id type.typeAccountId:'static
+ scale::Codec
+ CodecAsType
+ Clone
+ PartialEq
+ Eq
+ Ord
+ AsRef<[u8]>
+ AsMut<[u8]>;
...
It is translated for now as:
Module Environment.
Class Trait (Self : Set) : Set := {
MAX_EVENT_TOPICS : usize;
AccountId : Set;
...
Instead, we want to have types that are "synonym fields" (with := instead of :), and all the types being given as parameters together with the type-class information:
In https://github.com/paritytech/ink/blob/2eba99ee445a4aee34d0919041388e7e727f7ed8/crates/env/src/types.rs there is the definition of the trait
Environment
:It is translated for now as:
in https://github.com/formal-land/coq-of-rust/blob/main/CoqOfRust/ink/Env.v
Instead, we want to have types that are "synonym fields" (with
:=
instead of:
), and all the types being given as parameters together with the type-class information:The text was updated successfully, but these errors were encountered: