Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Update ante handler dependencies#81

Merged
BrandonWeng merged 6 commits intomainfrom
bweng-ante-validation
Nov 1, 2022
Merged

Update ante handler dependencies#81
BrandonWeng merged 6 commits intomainfrom
bweng-ante-validation

Conversation

@BrandonWeng
Copy link
Contributor

Describe your changes and provide context

Updates ante handler dependencies

Testing performed to validate your change

sei-protocol/sei-chain#354

@BrandonWeng BrandonWeng requested a review from udpatil November 1, 2022 02:59
types/handler.go Outdated
return txDeps, nil
// TODO:: use the commit access helper - blocked by circular dep. Should move it to the type/accesscontrol instead
commit := sdkacltypes.AccessOperation{
ResourceType: sdkacltypes.ResourceType_ANY,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you help me understand why we need this if ante handler will eventually be followed by the actual msg's dependency list which already ends with a COMMIT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually, yeah that's a good point. Let me remove this and validate the access ops another way - the validate access ops call always assert that there's a COMMIT at the end, this breaks down when we're just validating the ante handlers

@BrandonWeng BrandonWeng merged commit d923be7 into main Nov 1, 2022
@BrandonWeng BrandonWeng deleted the bweng-ante-validation branch November 1, 2022 03:47
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.

2 participants