Skip to content

[PLA-2500] Update to Enjin Platform SDK 3.0.4 - #9

Merged
JayPavlina merged 1 commit into
masterfrom
feature/PLA-2500/update-to-sdk-v3-0-4
Aug 4, 2026
Merged

[PLA-2500] Update to Enjin Platform SDK 3.0.4#9
JayPavlina merged 1 commit into
masterfrom
feature/PLA-2500/update-to-sdk-v3-0-4

Conversation

@JayPavlina

Copy link
Copy Markdown
Collaborator

Bump the Enjin.Platform.Sdk PackageReference from 3.0.3 to 3.0.4 and harden transaction completion checking to match the semantics 3.0.4 documents.

The bump itself needs no source changes. 3.0.4's breaking changes are confined to surface this server does not use: the GetCompatibleFuelTanks arguments (pallet/method replaced by transactions/batchMode), the CompatibleFuelTank budget fields, infusion/unitPrice retyped from BigInteger to string, and FuelTankRuleSet.WhitelistedPallets retyped to an enum collection.

Also fixes a pre-existing bug in WaitForFinalizationAsync, which treated state FINALIZED as success and discarded the transaction's error. Per 3.0.4's Transaction.Error documentation, a batch extrinsic still finalizes on-chain when wrapped items fail to dispatch, so FINALIZED alone does not mean the requested work happened.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the sample server to Enjin Platform SDK 3.0.4 and aligns transaction completion logic with the SDK’s documented semantics, ensuring a transaction being Finalized is not treated as success when it still reports an error (e.g., partial failure in batch extrinsics).

Changes:

  • Bump Enjin.Platform.Sdk from 3.0.3 to 3.0.4.
  • Harden WaitForFinalizationAsync to request and evaluate Transaction.Error (and FailedItemIndexes) so Finalized + non-empty Error fails fast with a clearer exception message.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Services/EnjinService.cs Adds Error/FailedItemIndexes to the polled transaction fields and treats Finalized as success only when Error is empty; improves terminal-state error reporting.
PlatformSampleGameServer.csproj Updates Enjin Platform SDK dependency to 3.0.4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JayPavlina
JayPavlina merged commit 83b4c02 into master Aug 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants