-
Notifications
You must be signed in to change notification settings - Fork 112
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
Creating a working example for contract calls #6630
Creating a working example for contract calls #6630
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #6630 +/- ##
============================================
- Coverage 92.70% 92.69% -0.01%
+ Complexity 6392 6391 -1
============================================
Files 823 823
Lines 27079 27079
Branches 3104 3104
============================================
- Hits 25104 25102 -2
- Misses 1270 1271 +1
- Partials 705 706 +1 ☔ View full report in Codecov by Sentry. |
@@ -2446,7 +2446,7 @@ components: | |||
type: integer | |||
to: | |||
description: The 20-byte hexadecimal EVM address the transaction is directed to. | |||
example: "0x00000000000000000000000000000000000003f4" | |||
example: "0xD9d0c5C0Ff85758BdF05A7636F8036d4D065F5B6" |
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.
nit: prefer lowercase hex like the other examples
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.
I agree in general lowercase is good for any other value, but for addresses I usually prefer the checksum version.
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
bec76bd
to
f79e17b
Compare
Signed-off-by: Giuseppe Bertone <giuseppe.bertone@swirldslabs.com>
f79e17b
to
8b4289b
Compare
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
Description:
In the Swagger UI, the current example payload for the endpoint /api/v1/contracts/call contains some errors:
This PR modifies the example payload, so the user can test the API without customizing the payload.
Related issue(s):
N/A
Notes for reviewer:
N/A
Checklist