Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update codegen after SCALE v3.1.2 release #1189

Merged
merged 2 commits into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ impl CallBuilder<'_> {
::core::cmp::Eq,
::core::clone::Clone,
)]
#[codec(crate = ::scale)]
pub struct #cb_ident {
account_id: AccountId,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ impl ContractRef<'_> {
::core::cmp::Eq,
::core::clone::Clone,
)]
#[codec(crate = ::scale)]
#( #doc_attrs )*
pub struct #ref_ident {
inner: <#storage_ident as ::ink_lang::codegen::ContractCallBuilder>::Type,
Expand Down
1 change: 0 additions & 1 deletion crates/lang/codegen/src/generator/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ impl<'a> Events<'a> {
quote! {
#[allow(non_camel_case_types)]
#[derive(::scale::Encode, ::scale::Decode)]
#[codec(crate = ::scale)]
#[cfg(not(feature = "__ink_dylint_EventBase"))]
pub enum #base_event_ident {
#( #event_idents(#event_idents), )*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ impl CallBuilder<'_> {
#[doc(hidden)]
#[allow(non_camel_case_types)]
#[derive(::scale::Encode, ::scale::Decode)]
#[codec(crate = ::scale)]
#[repr(transparent)]
pub struct #call_builder_ident<E>
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ impl CallForwarder<'_> {
#[doc(hidden)]
#[allow(non_camel_case_types)]
#[derive(::scale::Encode, ::scale::Decode)]
#[codec(crate = ::scale)]
#[repr(transparent)]
pub struct #call_forwarder_ident<E>
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<De
= note: the following trait bounds were not satisfied:
`NonCodecType: parity_scale_codec::Decode`
note: the following trait must be implemented
--> $CARGO/parity-scale-codec-3.1.0/src/codec.rs
--> $CARGO/parity-scale-codec-3.1.2/src/codec.rs
|
| / pub trait Decode: Sized {
| | // !INTERNAL USE ONLY!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ error[E0599]: the method `fire` exists for struct `CallBuilder<E, Set<Call<E>>,
= note: the following trait bounds were not satisfied:
`NonCodec: parity_scale_codec::Decode`
note: the following trait must be implemented
--> $CARGO/parity-scale-codec-3.1.0/src/codec.rs
--> $CARGO/parity-scale-codec-3.1.2/src/codec.rs
|
| / pub trait Decode: Sized {
| | // !INTERNAL USE ONLY!
Expand Down