-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cmd/rpc): adding blob module to rpc cli and fixing namespace par…
…sing (#2308) This PR does the following: ### Adds blob module support `blob.Submit` has been added with custom parsing for posting a single blob. `blob.GetAll` also only takes a single namespace id for now. This will make devx easier ### Adds --print-request flag Now the request can also be displayed along with the json response. This will both help for debugging and building things that need to build the requests themselves ### Fixes namespace parsing Namespaces are now encoded correctly again. In addition, if you pass a namespace of 8 bytes, it will zero-pad and use share/nID version 0. ### Fixes `state.SubmitPayForBlob` Another issue was the change to an array. We now submit an array of a single blob, and changed the order of the arguments. The order is now: fee, gasLimit, namespaceID, blob data ### Adds formatted output JQ is no longer needed to have an indented output. But colors are missing --------- Co-authored-by: rene <[email protected]>
- Loading branch information
1 parent
c6f4d68
commit 1247225
Showing
1 changed file
with
158 additions
and
30 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