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

fix: allow for no bank balances in all simulations #137

Merged
merged 12 commits into from
Aug 26, 2024
Merged

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented Aug 22, 2024

  • Always use 0denom dummy fee value in simulation
  • Add in calculated gas consumption amount to account for keeper codepaths that are not hit because of this (in sim only)
  • add non-mocked bank keeper testing
  • lint fixes due to version bump

@aljo242 aljo242 force-pushed the fix/bank-balances branch from 96bd7d2 to 9447315 Compare August 22, 2024 20:16
Copy link
Contributor

@swelf19 swelf19 left a comment

Choose a reason for hiding this comment

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

LGTM. Also implemeted testcase with our testsuite and it works.

Copy link
Contributor

@Eric-Warehime Eric-Warehime left a comment

Choose a reason for hiding this comment

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

LGTM. Only thing is it seems weird to hard code bank send gas usage here.

@swelf19
Copy link
Contributor

swelf19 commented Aug 23, 2024

One question. In a slack there was a discussion about non consensus breaking patch, but seems like all the games with a gas meter are consensus breaking.

@aljo242 aljo242 force-pushed the fix/bank-balances branch from 6326c15 to 5811698 Compare August 26, 2024 14:55
@aljo242 aljo242 merged commit f1f216e into main Aug 26, 2024
15 checks passed
@aljo242 aljo242 deleted the fix/bank-balances branch August 26, 2024 16:50
mergify bot pushed a commit that referenced this pull request Aug 26, 2024
* init

* recreate and fix bug

* helper

* ante tests

* ok

* fix via gas consume call during simulation

* test

* revert

* lint fix

* retract more

* replace linter

* set lint to what we use

(cherry picked from commit f1f216e)

# Conflicts:
#	x/feemarket/ante/expected_keepers.go
#	x/feemarket/ante/mocks/mock_bank_keeper.go
#	x/feemarket/ante/suite/suite.go
#	x/feemarket/post/fee_test.go
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.

4 participants