diff --git a/listings/ch00-getting-started/custom_type_serde/src/contract.cairo b/listings/ch00-getting-started/custom_type_serde/src/contract.cairo index ae81cd5a..0a70122a 100644 --- a/listings/ch00-getting-started/custom_type_serde/src/contract.cairo +++ b/listings/ch00-getting-started/custom_type_serde/src/contract.cairo @@ -1,7 +1,7 @@ #[starknet::interface] trait ISerdeCustomType { fn person_input(ref self: TContractState, person: SerdeCustomType::Person); - fn person_output(ref self: TContractState) -> SerdeCustomType::Person; + fn person_output(self: @TContractState) -> SerdeCustomType::Person; } #[starknet::contract] @@ -18,8 +18,7 @@ mod SerdeCustomType { } #[abi(per_item)] - #[generate_trait] - impl SerdeCustomType of ISerdeCustomType { + impl SerdeCustomType of super::ISerdeCustomType { #[external(v0)] fn person_input(ref self: ContractState, person: Person) {}