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

draft PR #143

Conversation

FrankiePower
Copy link

Improve function signatures #140

having issues with scarb build

Types of change

  • Feature
  • Bug
  • Enhancement

Comments (optional)

@@ -15,6 +15,7 @@ pub mod MarquisGame {
};

use core::num::traits::Zero;
use core::option::Option::{None, Some};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already handling Option/Some/None in other sections of the code, and we dont have to import these libs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay i'll remove it


// Determine if the session is free or paid

let (play_token, play_amount) = match (option_token, option_amount) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cairo doestn handle Some and None like this. This is not the syntax

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me go through the documentation. i'm currently on it

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

Successfully merging this pull request may close these issues.

2 participants