[PLA-2471] Update sample game server for Enjin Platform SDK 3.0.3 - #8
Merged
Merged
Conversation
Bump the Enjin.Platform.Sdk PackageReference from 3.0.2 to 3.0.3 and adapt EnjinService to the SDK's breaking changes so the server compiles and round-trips against the v3 schema." -m "Changes: (1) GetManagedWallet no longer accepts network/chain arguments, dropped from both call sites; (2) TransferEnjInput.Amount changed from BigInteger to string (ENJ scalar), so the drip amount is sent via amount.ToString(); (3) Transaction.extrinsicHash was removed (the hash now lives on the nested Extrinsic object), so it is no longer selected in the GetTransaction poll where it was unused." -m "Verified end-to-end against Canary: register provisions a managed wallet, the 1 ENJ drip finalizes, and get-tokens returns the account.
There was a problem hiding this comment.
Pull request overview
Updates the sample game server to compile and work with Enjin Platform SDK 3.0.3, adapting EnjinService to the SDK’s breaking GraphQL/SDK API changes while keeping existing server behavior intact.
Changes:
- Bumped
Enjin.Platform.Sdkdependency from 3.0.2 → 3.0.3. - Updated
GetManagedWalletqueries to match the new signature (removed network/chain arguments). - Adjusted ENJ transfer and transaction polling queries to match updated schema (ENJ amount as string; removed
extrinsicHashselection).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Services/EnjinService.cs | Updates managed wallet queries, ENJ transfer input formatting, and transaction polling selection set for SDK 3.0.3 compatibility. |
| PlatformSampleGameServer.csproj | Bumps Enjin Platform SDK package version to 3.0.3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump the Enjin.Platform.Sdk PackageReference from 3.0.2 to 3.0.3 and adapt EnjinService to the SDK's breaking changes so the server compiles and round-trips against the v3 schema.