Summary generated by Reviewpad on 23 May 23 21:42 UTC
This pull request includes a cleanup and bug fix in module.go that utilizes the shared codec module when marshaling data sent over the wire, and it introduces a hacky workaround to cast a uint32 to a string since it is being passed in as a json.Number through some codeflow. Additionally, the changelog has been updated to reflect these changes.
The correct fix is to identify where/how a json.Number is propagated to this field, but as a temporary hacky workaround, it was cast to a string. See this StackOverflow answer for more details:
Issue
NA
Type of change
Please mark the relevant option(s):
[ ] New feature, functionality or library
[x] Bug fix
[ ] Code health or cleanup
[ ] Major breaking change
[ ] Documentation
[ ] Other
List of changes
Use the shared codec module resolving a couple techdebt items
Introduce a hacky workaround
...
Testing
[x] make develop_test; if any code changes were made
[ ] make test_e2e on k8s LocalNet; if any code changes were made
[ ] e2e-devnet-test passes tests on DevNet; if any code was changed
@bryanchriswhite I'm going to merge this in just to unblock things but if you can look at // HACK(#783): Figure out why we need a conversion here (in the code) at some point in the future, would appreciate it!
Description
Summary generated by Reviewpad on 23 May 23 21:42 UTC
This pull request includes a cleanup and bug fix in module.go that utilizes the shared codec module when marshaling data sent over the wire, and it introduces a hacky workaround to cast a
uint32
to astring
since it is being passed in as ajson.Number
through some codeflow. Additionally, the changelog has been updated to reflect these changes.Origin Document
The error encountered is:
The following video captures
https://github.com/pokt-network/pocket/assets/1892194/0b90a0f5-74ba-4f59-8042-4a9b9341c56e
The correct fix is to identify where/how a
json.Number
is propagated to this field, but as a temporary hacky workaround, it was cast to a string. See this StackOverflow answer for more details:Issue
NA
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)