Skip to content

Instantly share code, notes, and snippets.

@ryanswrt

ryanswrt/lib.rs Secret

Created August 14, 2019 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanswrt/70cce7ede25f084502c896bf5c471d2b to your computer and use it in GitHub Desktop.
Save ryanswrt/70cce7ede25f084502c896bf5c471d2b to your computer and use it in GitHub Desktop.
// inside "impl Contract"
pub fn toggle(&mut self, params: &mut Parameters) -> Result<(), String> {
self.universe.toggle_cell(params.read(), params.read());
Ok(())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment