Skip to content

Commit

Permalink
[contracts-common] Fix documentation regarding generating error schema
Browse files Browse the repository at this point in the history
for init
  • Loading branch information
soerenbf committed Nov 8, 2023
1 parent a3a1640 commit 3faf93a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ pub fn deletable_derive(input: TokenStream) -> TokenStream {
/// #[derive(SchemaType)]
/// enum MyError { ... }
///
/// #[init(contract = "my_contract", parameter = "MyError")]
/// #[init(contract = "my_contract", error = "MyError")]
/// fn some_init(ctx: &impl InitContext, state: &mut StateApi) -> Result<(), MyError> {...}
/// ```
///
Expand Down

0 comments on commit 3faf93a

Please sign in to comment.