-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement uint128 field encoding for genesis. #1732
Conversation
lib/genesis/pallet.go
Outdated
MaxMembers uint32 `json:"MaxMembers"` //TODO: figure out the type | ||
Members []string `json:"Members"` | ||
Pot *scale.Uint128 `json:"Pot"` | ||
MaxMembers *scale.Uint128 `json:"MaxMembers"` // TODO: figure out the type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove todo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
e12ba31
to
c31ed4d
Compare
c31ed4d
to
37377d4
Compare
Codecov Report
@@ Coverage Diff @@
## development #1732 +/- ##
============================================
Coverage 58.85% 58.85%
============================================
Files 183 183
Lines 19267 19276 +9
============================================
+ Hits 11339 11345 +6
+ Misses 5965 5963 -2
- Partials 1963 1968 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
pkg/scale/uint128.go
Outdated
// UnmarshalJSON converts data to Uint128. | ||
func (u *Uint128) UnmarshalJSON(data []byte) error { | ||
buf := make([]byte, len(data)) | ||
copy(buf, data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the buf
variable is not being used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* Implement uint128 field encoding for genesis. * Address comments and fix failing tests. * Fix failing tests. * Remove unused buffer.
Changes
Tests
Issues
Primary Reviewer