diff --git a/lib/contracts/notes/game/inter_unmask.masm b/lib/contracts/notes/game/inter_unmask.masm index c7198e2..5e0a3c3 100644 --- a/lib/contracts/notes/game/inter_unmask.masm +++ b/lib/contracts/notes/game/inter_unmask.masm @@ -12,6 +12,13 @@ const.NO_OF_CARDS=3 const.REQUESTER_INFO_SLOT=102 const.TEMP_CARD_SLOT=103 +proc.tx_state_change + push.254 exec.account::get_item + add.1 + push.254 exec.account::set_item + dropw dropw +end + proc.inter_unmask # => [card_index, ca', cb'] swap push.G inv @@ -76,4 +83,6 @@ begin call.set_requester_data dropw dropw + + call.tx_state_change dropw end \ No newline at end of file diff --git a/lib/contracts/notes/game/send_community_cards.masm b/lib/contracts/notes/game/send_community_cards.masm index b2e346b..a6c63db 100644 --- a/lib/contracts/notes/game/send_community_cards.masm +++ b/lib/contracts/notes/game/send_community_cards.masm @@ -8,6 +8,13 @@ const.TEMP_CARD_SLOT=103 const.PLAYER_DATA_SLOT=56 const.PHASE_DATA_SLOT=57 +proc.tx_state_change + push.254 exec.account::get_item + add.1 + push.254 exec.account::set_item + dropw dropw +end + proc.receive_cards exec.account::set_item # => [R, V] @@ -57,4 +64,6 @@ begin call.set_phase dropw dropw + + call.tx_state_change dropw end \ No newline at end of file diff --git a/lib/contracts/notes/game/send_unmasked_cards.masm b/lib/contracts/notes/game/send_unmasked_cards.masm index 273a249..78038ba 100644 --- a/lib/contracts/notes/game/send_unmasked_cards.masm +++ b/lib/contracts/notes/game/send_unmasked_cards.masm @@ -7,6 +7,13 @@ const.NO_OF_CARDS=3 const.TEMP_CARD_SLOT=103 const.PLAYER_DATA_SLOT=56 +proc.tx_state_change + push.254 exec.account::get_item + add.1 + push.254 exec.account::set_item + dropw dropw +end + proc.receive_cards exec.account::set_item # => [R, V] @@ -57,4 +64,6 @@ begin call.increment_action_type dropw dropw + + call.tx_state_change dropw end \ No newline at end of file diff --git a/lib/contracts/notes/game/set_community_cards.masm b/lib/contracts/notes/game/set_community_cards.masm index b25c576..347e1c7 100644 --- a/lib/contracts/notes/game/set_community_cards.masm +++ b/lib/contracts/notes/game/set_community_cards.masm @@ -5,6 +5,13 @@ use.miden::contracts::wallets::basic->wallet const.NO_OF_CARDS=3 +proc.tx_state_change + push.254 exec.account::get_item + add.1 + push.254 exec.account::set_item + dropw dropw +end + proc.set_cards # => [card_index, Cb, Ca] push.0 dup movup.2 @@ -47,5 +54,7 @@ begin loc_store.0 end + call.tx_state_change dropw + dropw end \ No newline at end of file