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

Mismatch between exercise code and docs - hashes #50

Open
matthabermehl opened this issue Dec 3, 2021 · 1 comment
Open

Mismatch between exercise code and docs - hashes #50

matthabermehl opened this issue Dec 3, 2021 · 1 comment

Comments

@matthabermehl
Copy link
Contributor

matthabermehl commented Dec 3, 2021

The first code block in the docs here,

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct SomeExternalInput {
    title: String,
    content: String,
}

pub fn add_book(input: SomeExternalInput) -> ExternResult<EntryHash> {
    unimplemented!();
}

pub fn get_book(hash: String) -> ExternResult<Book> {
    unimplemented()
}

provides SomeExternalInput whereas the developer exercises repo here provides Book which we are told to implement:

entry_defs![Book::entry_def()];

#[hdk_entry(id = "book")]
pub struct Book {
    title: String,
    content: String,
}
matthabermehl added a commit to matthabermehl/developer-exercises that referenced this issue Dec 3, 2021
holochain-gym#49
Note: This is strictly to bring the file into line with the docs (also see holochain-gym/holochain-gym.github.io#50). The functionality has not been tested.
@matthabermehl
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant