Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

fix: add authz ante handler #1741

Merged
merged 17 commits into from
Apr 10, 2023
Merged

fix: add authz ante handler #1741

merged 17 commits into from
Apr 10, 2023

Conversation

facs95
Copy link
Contributor

@facs95 facs95 commented Apr 5, 2023

Closes: #XXX

Description

Adds authz ante check with the corresponding tests. Starts the process of reorganizing tests based on the work done on Evmos.


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@facs95 facs95 requested a review from a team as a code owner April 5, 2023 23:01
@facs95 facs95 requested review from 0a1c and GAtom22 and removed request for a team April 5, 2023 23:01
@github-advanced-security
Copy link

You have successfully added a new Semgrep configuration .github/workflows/semgrep.yml:semgrep. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #1741 (aeabde4) into main (d1935f7) will increase coverage by 0.11%.
The diff coverage is 88.88%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1741      +/-   ##
==========================================
+ Coverage   67.94%   68.05%   +0.11%     
==========================================
  Files         112      113       +1     
  Lines       10209    10263      +54     
==========================================
+ Hits         6936     6984      +48     
- Misses       2865     2869       +4     
- Partials      408      410       +2     
Impacted Files Coverage Δ
app/ante/authz.go 86.95% <86.95%> (ø)
app/ante/eip712.go 58.46% <100.00%> (+0.43%) ⬆️
app/ante/handler_options.go 71.69% <100.00%> (+1.10%) ⬆️
app/app.go 85.07% <100.00%> (+0.11%) ⬆️

app/ante/authz.go Outdated Show resolved Hide resolved
app/ante/authz.go Outdated Show resolved Hide resolved
app/ante/authz_test.go Outdated Show resolved Hide resolved
app/ante/authz_test.go Outdated Show resolved Hide resolved
app/ante/authz_test.go Outdated Show resolved Hide resolved
app/ante/authz_test.go Outdated Show resolved Hide resolved
app/ante/authz_test.go Outdated Show resolved Hide resolved
app/ante/eip712.go Outdated Show resolved Hide resolved
testutil/tx/eip712.go Outdated Show resolved Hide resolved
)
suite.Require().NoError(err)

header := suite.ctx.BlockHeader()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary?

@@ -25,39 +25,42 @@ import (
)

// maxNestedMsgs defines a cap for the number of nested messages on a MsgExec message
const maxNestedMsgs = 7
const maxNestedMsgs = 6
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the change to 6 ?

@facs95 facs95 merged commit 145ac0c into main Apr 10, 2023
32 of 33 checks passed
@facs95 facs95 deleted the facs95/authz-ante branch April 10, 2023 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants