From 30d013dd7ce52d41df1e087b42d851527ef9ed6c Mon Sep 17 00:00:00 2001 From: Jay Pavlina Date: Mon, 13 Jul 2026 15:34:12 -0300 Subject: [PATCH] [PLA-2471] Update sample game server for Enjin Platform SDK 3.0.3 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. --- PlatformSampleGameServer.csproj | 2 +- Services/EnjinService.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PlatformSampleGameServer.csproj b/PlatformSampleGameServer.csproj index 11592a7..4b78c4c 100644 --- a/PlatformSampleGameServer.csproj +++ b/PlatformSampleGameServer.csproj @@ -22,6 +22,6 @@ - + diff --git a/Services/EnjinService.cs b/Services/EnjinService.cs index 1aadc24..ca0b9b3 100644 --- a/Services/EnjinService.cs +++ b/Services/EnjinService.cs @@ -254,8 +254,6 @@ await WaitForFinalizationAsync( { var query = new QueryQueryBuilder().WithGetManagedWallet( new ManagedWalletQueryBuilder().WithPublicKey().WithExternalId(), - _network, - _chain, externalId: externalId ); @@ -357,7 +355,11 @@ CancellationToken ct var input = new TransactionInput { - TransferEnj = new TransferEnjInput { Recipient = recipientAddress, Amount = amount }, + TransferEnj = new TransferEnjInput + { + Recipient = recipientAddress, + Amount = amount.ToString(), + }, }; try @@ -400,8 +402,6 @@ CancellationToken ct // Step 1: locate the managed wallet's public key. var mwQuery = new QueryQueryBuilder().WithGetManagedWallet( new ManagedWalletQueryBuilder().WithPublicKey().WithExternalId(), - _network, - _chain, externalId: externalId ); @@ -625,7 +625,7 @@ CancellationToken ct ct.ThrowIfCancellationRequested(); var query = new QueryQueryBuilder().WithGetTransaction( - new TransactionQueryBuilder().WithUuid().WithState().WithExtrinsicHash(), + new TransactionQueryBuilder().WithUuid().WithState(), _network, _chain, uuid: uuid