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

Improve Readme, add examples, etc #45

Open
ryancwalsh opened this issue Sep 7, 2022 · 0 comments
Open

Improve Readme, add examples, etc #45

ryancwalsh opened this issue Sep 7, 2022 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@ryancwalsh
Copy link
Contributor

We should show examples about how to write a contract that uses this library.

For example, see #39 (comment)

We'll want to instruct how to make error messages human-readable, such as via:

self.approve_request(request_id)
    .map_err(|e| env::panic_str(&e.to_string()))
    .unwrap()
@ryancwalsh ryancwalsh self-assigned this Sep 7, 2022
@encody encody added the documentation Improvements or additions to documentation label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants