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

feat(starter-game-template): update to use a new version of cardinal … #4

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

jerargus
Copy link
Contributor

…that returns tx_hash

Update the starter-game-template to use an updated version of cardinal that returns a tx_hash when creating new transaction and when returning receipts. This PR touches a lot of files, but most of them are due to the package name change for cardinal.

To test/verify:

  • run nakama and cardinal with mage start.
  • wait for nakama and cardinal to start
  • Run the jsclient from the hidden .jsclient folder with npm install && node main.mjs
  • open a browser to localhost:7351 to access the Nakama UI.
  • From the API explorer, hit the nakama/create-persona endpoint with a user ID of 00000000-0000-0000-0000-000000000000 and a body of {"persona_tag": "xyzzy"}
  • Observe the response has a tx_hash field.
  • Observe the jsclient eventually spits out a receipt for the create persona request, which includes the above tx_hash.

@jerargus jerargus merged commit dc30649 into main Aug 25, 2023
3 checks passed
@namrapatel namrapatel deleted the jer/use-tx-hash branch November 1, 2023 23:31
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.

1 participant