0xFable icon indicating copy to clipboard operation
0xFable copied to clipboard

Decks Onchain

Open eviterin opened this issue 1 year ago • 5 comments

Context (Problem, Motivation, Solution)

#103 Bring Decks Onchain #111 Add Deck Validity Status when Constructing Deck

Describe Your Changes

Decks are now saved and modified onchain. Decks owned by the player are now presented in their collection. Minor changes to UI but not overhauled (#93)

A couple of functions added in the Inventory.sol contract, namely: getAllDecks getDeckNames getDeckReal

Checklist

  • [x] I have performed a self-review of my code
  • [x] I ran make check and fixed resulting issues
  • [ ] I ran the relevant tests and they all pass
  • [ ] I wrote tests for my new features, or added regression tests for the bug I fixed

Testing

If you didn't write tests, explain how you made sure the code was correct and working as intended.

eviterin avatar Mar 08 '24 20:03 eviterin

This one should be in draft state, but I can't set it to that. Still have tests & checks to do, and refactor getDeckReal as it clashes with a function named getDeck that fetches only the cards of a deck(not name).

eviterin avatar Mar 08 '24 20:03 eviterin

You don't see "Still in progress? Convert to Draft" in the top right panel? If you do see it, what happens if you click it?

You have write access to the repo, so you should be able to convert the PR to draft in theory!

Do you want me to already give this a review, or do you want me to wait when you're done?

norswap avatar Mar 12 '24 17:03 norswap

I see this still has conflict, so should be rebased on top of master!

norswap avatar Mar 17 '24 20:03 norswap

It's kind of weird there are commits from Aritra in the middle ... rebase gone wrong?

norswap avatar Mar 17 '24 20:03 norswap

Aritra commits are DELTED. REBASED on top of master. All checks PASSING. Commit history tidied up (some).

I haven't been able to verify if my work has regressed gameplay due to "#135 Unable to Join Game", and am worried as I have refactored getDeck in Inventory.sol that is used there (commit f812094).

eviterin avatar Mar 26 '24 19:03 eviterin