-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for int compression type in JSON
It appears that `eosjs` output the `compression` fied in JSON using an integer. This passes when sent to `nodeos` so it seems it's correctly supported. Source code of `nodeos` also seems to implies that is possible to use a string for the `compression` field (from various comments on `cleos` source code). Investigation was not full in the sense that it's not clear if the underlying source supports both. Since the eos-go implementation was supporting string version, I decided to simply added support for `uint8` support if string fails with an unmarshal type error.
- Loading branch information
Matthieu Vachon
committed
Mar 8, 2019
1 parent
433ef56
commit 7f0e04a
Showing
3 changed files
with
79 additions
and
3 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.envrc | ||
.idea | ||
|
||
# Added temporarly until we actually use go.mod in this lib, so it's possible to easily hack the lib as needed | ||
go.mod |
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