Skip to content

Commit

Permalink
appying improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbrs committed Nov 15, 2023
1 parent 727ecf0 commit 22fe713
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[starknet::interface]
trait ISerdeCustomType<TContractState> {
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]
Expand All @@ -18,8 +18,7 @@ mod SerdeCustomType {
}

#[abi(per_item)]
#[generate_trait]
impl SerdeCustomType of ISerdeCustomType {
impl SerdeCustomType of super::ISerdeCustomType<ContractState> {
#[external(v0)]
fn person_input(ref self: ContractState, person: Person) {}

Expand Down

0 comments on commit 22fe713

Please sign in to comment.