-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove `omitempty` from `DataSlice` fields. `offset` and `length` can both be `0` in RPC calls (c.f. https://docs.solana.com/developing/clients/jsonrpc-api#results-27) The current code stops JSON from encoding the fields if they're `0`, thus breaking RPC calls with: {"code":-32602,"message":"Invalid params: missing field `offset`.","data":null} * remove some impossible test cases Co-authored-by: yihau <[email protected]>
- Loading branch information
1 parent
25fc86c
commit 9928d96
Showing
3 changed files
with
2 additions
and
133 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
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