This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 919
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use string for RPC message IDs (#3507)
- Still an autoincrementing integer, but sent to the server as a string - This means the server will return it to us as a string, and we don't need to worry about number/bigint upcasting - This fixes the bug in subscriptions, caused by upcasting the ID to a bigint <img width="329" alt="Screenshot 2024-10-31 at 16 06 51" src="https://github.com/user-attachments/assets/2fc3ccb8-34a9-449d-9fd9-536ebce29b8b"> <img width="426" alt="Screenshot 2024-10-31 at 16 07 32" src="https://github.com/user-attachments/assets/9e107fdc-dcd2-47d0-91be-8cadd98ec85e">
- Loading branch information
1 parent
bd1cd50
commit 45df702
Showing
6 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@solana/rpc-subscriptions': patch | ||
'@solana/rpc-spec-types': patch | ||
'@solana/rpc-spec': patch | ||
--- | ||
|
||
Fixed a bug where the subcription server's response would not be detected, because of a mismatch in the format of the `id`. Now all RPC message ids are strings, for avoidance of doubt. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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