-
Notifications
You must be signed in to change notification settings - Fork 81
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
smartcontract: introduce Convertible interface #3297
Conversation
b6da21e
to
9271e31
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3297 +/- ##
==========================================
+ Coverage 85.16% 85.19% +0.03%
==========================================
Files 327 327
Lines 44448 44459 +11
==========================================
+ Hits 37854 37878 +24
+ Misses 5095 5074 -21
- Partials 1499 1507 +8 ☔ View full report in Codecov by Sentry. |
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.
Tests?
Allow to pass Convertible to NewParameterFromValue. Close #3285. Signed-off-by: Anna Shaleva <[email protected]>
Run error cases in the same loop with test cases. No functional changes. Signed-off-by: Anna Shaleva <[email protected]>
9271e31
to
136fb5e
Compare
pkg/rpcclient/nns/record.go
Outdated
@@ -33,6 +39,14 @@ const ( | |||
AAAA RecordType = 28 | |||
) | |||
|
|||
// ToParameter implements smartcontract.Convertible interface. |
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.
not ToSCParameter instead of ToParameter?
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.
Fixed!
Implement smartcontract.Convertible for nns.RecordType. Signed-off-by: Anna Shaleva <[email protected]>
136fb5e
to
161b83f
Compare
Close #3285. Needed for proper #3291 handling.