Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to result type #88

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions 1/storing-a-value.md
Expand Up @@ -44,7 +44,7 @@ Refer to definition of [Origin](https://docs.substrate.dev/docs/glossary#section

### Result

Additionally, these functions must return the `Result` type from the `support::dispatch` module. This means that a successful function call will always return `Ok(())`, otherwise, the logic should catch any errors which may cause a problem and return an `Err()`.
Additionally, these functions must return the [`Result` type](https://crates.parity.io/srml_support/dispatch/result/index.html) from the `support::dispatch` module. This means that a successful function call will always return `Ok(())`, otherwise, the logic should catch any errors which may cause a problem and return an `Err()`.

Since these are dispatched functions, there are two extremely important things to remember:

Expand Down Expand Up @@ -104,4 +104,4 @@ use system::ensure_signed;

As mentioned in "common patterns" section, Rust will be your friend throughout runtime development, and *should mostly* help you overcome any issues in your code. Moving forward we will try to mention whenever you need to import a new library, but don't be worried when the compiler sends you some errors. Instead embrace the helpful suggestions it might be giving you.

---
---