diff --git a/examples/starknet_multiple_contracts/src/forty_two.cairo b/examples/starknet_multiple_contracts/src/forty_two.cairo index 8ad56da0c..890db96e2 100644 --- a/examples/starknet_multiple_contracts/src/forty_two.cairo +++ b/examples/starknet_multiple_contracts/src/forty_two.cairo @@ -1,10 +1,17 @@ +#[starknet::interface] +pub trait IFortyTwo { + fn answer(self: @TContractState) -> felt252; +} + #[starknet::contract] mod FortyTwo { #[storage] struct Storage {} #[abi(embed_v0)] - fn answer(ref self: ContractState) -> felt252 { - 42 + impl FortyTwo of super::IFortyTwo { + fn answer(self: @ContractState) -> felt252 { + 42 + } } }