Skip to content
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

Problem: missing validation on nft-transfer message fields #1019

Merged
merged 10 commits into from
Dec 5, 2023

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Dec 5, 2023

Solution:

  • add some validation in check-tx

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Solution:
- add some validation in check-tx first
@yihuang yihuang requested a review from a team as a code owner December 5, 2023 06:48
CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: yihuang <[email protected]>
app/ante.go Outdated Show resolved Hide resolved
Signed-off-by: yihuang <[email protected]>
app/ante.go Show resolved Hide resolved
Signed-off-by: yihuang <[email protected]>
app/ante.go Outdated Show resolved Hide resolved
Signed-off-by: yihuang <[email protected]>
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (d71c53c) 33.05% compared to head (e5369f8) 33.08%.

Files Patch % Lines
app/ante.go 66.66% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1019      +/-   ##
==========================================
+ Coverage   33.05%   33.08%   +0.03%     
==========================================
  Files         126      126              
  Lines       20014    20041      +27     
==========================================
+ Hits         6616     6631      +15     
- Misses      12339    12349      +10     
- Partials     1059     1061       +2     
Flag Coverage Δ
integration_tests 20.71% <51.85%> (+0.02%) ⬆️
integration_tests_byzantine 9.66% <29.62%> (+0.01%) ⬆️
integration_tests_gov 10.03% <51.85%> (+0.05%) ⬆️
integration_tests_grpc 10.01% <51.85%> (+0.05%) ⬆️
integration_tests_ibc 24.81% <66.66%> (+0.04%) ⬆️
integration_tests_ledger 9.90% <51.85%> (+0.05%) ⬆️
integration_tests_slow 9.90% <51.85%> (+0.05%) ⬆️
integration_tests_solomachine 9.69% <51.85%> (+0.05%) ⬆️
integration_tests_upgrade 10.01% <51.85%> (+0.05%) ⬆️
unit_tests 10.99% <11.11%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

app/ante.go Outdated Show resolved Hide resolved
@yihuang yihuang enabled auto-merge December 5, 2023 08:37
@yihuang yihuang added this pull request to the merge queue Dec 5, 2023
Merged via the queue into crypto-org-chain:master with commit ef8f54b Dec 5, 2023
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants