Skip to content

Commit 387f9d1

Browse files
mstevens843claude
andcommitted
feat(mwa): add features[] to CapabilitiesResult for MWA 2.0 completeness
PR #269 shipped GetCapabilities() but its CapabilitiesResult is missing the features[] array defined in the MWA 2.0 spec. Real wallets populate it: tested on Solana Seeker with Phantom on mainnet, get_capabilities returns features=[supports_sign_and_send_transactions]. Without this field, the SDK silently drops that data on deserialization. Non-breaking: adds one nullable property on an existing response model. Existing consumers unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 74a2179 commit 387f9d1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Runtime/codebase/SolanaMobileStack/JsonRpcClient/Responses/CapabilitiesResult.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ public class CapabilitiesResult
1717

1818
[JsonProperty("supported_transaction_versions")]
1919
public string[] SupportedTransactionVersions { get; set; }
20+
21+
[JsonProperty("features", NullValueHandling = NullValueHandling.Ignore)]
22+
public string[] Features { get; set; }
2023
}

0 commit comments

Comments
 (0)