Skip to content

Commit

Permalink
Update codegen after SCALE v3.1.2 release (#1189)
Browse files Browse the repository at this point in the history
* Stop specifying path for `parity-scale-codec` crate

Looks like the original PR in the `v3.1` release broke this
unintentionally, but it is back to normal in `v3.1.2`

* Fix UI tests
  • Loading branch information
HCastano committed Mar 17, 2022
1 parent 159e7db commit cc05764
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 7 deletions.
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

0 comments on commit cc05764

Please sign in to comment.