Skip to content

Adding CC generator#107

Open
AaronPatterson1 wants to merge 4 commits intomainfrom
creditcard
Open

Adding CC generator#107
AaronPatterson1 wants to merge 4 commits intomainfrom
creditcard

Conversation

@AaronPatterson1
Copy link
Collaborator

No description provided.

use chrono::{Datelike, Utc};

#[wasm_bindgen]
pub fn get_cc_number() -> String {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change the function names to the format of credit_card_{number} to match the rest of the library function names.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed function names, please check.

#[wasm_bindgen]
pub fn get_cc_number() -> String {
let cardnum = get_cc_number_and_issuer();
pub fn get_credit_card_number() -> String {
Copy link
Contributor

Choose a reason for hiding this comment

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

Get rid of the get at the start

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