-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat: Adding proc fold, its endpoint and its unit test #13
Changes from 1 commit
b4d82d4
c014864
168545a
6024f1e
308d70a
fd4fee3
3365537
72a235c
4ae955b
8347ec3
d551424
93f7e3d
824c535
4d75c70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,8 +205,6 @@ async fn test_create_aze_game_account() { | |
async fn test_cards_distribution() { | ||
let mut client: AzeClient = create_test_client(); | ||
|
||
let slot_data = GameStorageSlotData::new(0, 0, 0, 0, 0, 0); | ||
|
||
let (game_account, player1_account_id, faucet_account_id, _) = setup_accounts(&mut client); | ||
|
||
let game_account_id = game_account.id(); | ||
|
@@ -223,6 +221,7 @@ async fn test_cards_distribution() { | |
.unwrap(); | ||
|
||
fund_account(&mut client, game_account_id, faucet_account_id).await; | ||
fund_account(&mut client, game_account_id, faucet_account_id).await; | ||
|
||
let fungible_asset = FungibleAsset::new(faucet_account_id, BUY_IN_AMOUNT).unwrap(); | ||
|
||
|
@@ -563,8 +562,6 @@ async fn assert_slot_status_fold( | |
} | ||
|
||
async fn fund_account(client: &mut AzeClient, account_id: AccountId, faucet_account_id: AccountId) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we minting two notes here to same account id ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This func is also used by test_cards_dist, where two notes need to be minted as there are two players to whom cards are being distributed. |
||
let note_1 = mint_note(client, account_id, faucet_account_id, NoteType::Public).await; | ||
consume_notes(client, account_id, &[note_1]).await; | ||
let note_2 = mint_note(client, account_id, faucet_account_id, NoteType::Public).await; | ||
consume_notes(client, account_id, &[note_2]).await; | ||
let note = mint_note(client, account_id, faucet_account_id, NoteType::Public).await; | ||
consume_notes(client, account_id, &[note]).await; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since 52 and 13 would always remain fixed so can you create constants for storing these values. Or use them if you have already created one.