Skip to content

Commit

Permalink
Merge pull request #472 from Concordium/bugfix/contracts-init-macro-e…
Browse files Browse the repository at this point in the history
…rror-docs

[contracts-common] Fix documentation regarding generating error schema for `init`
  • Loading branch information
soerenbf authored Nov 13, 2023
2 parents 794d30b + 3faf93a commit 2c9c299
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 2c9c299

Please sign in to comment.