-
Notifications
You must be signed in to change notification settings - Fork 610
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: increase unauthenticated gas to fix fee token issue #8573
Conversation
WalkthroughThe recent updates enhance the handling of unauthenticated transactions by introducing a new gas limit constant and refining the upgrade process. Key changes include the addition of Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
app/upgrades/v26/constants.go
Outdated
UpgradeName = "v26" | ||
|
||
// MaximumUnauthenticatedGas for smart account transactions to verify the fee payer | ||
MaximumUnauthenticatedGas = uint64(200_000) |
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.
Can we make this higher, e.g. 300k to 500k
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.
I defo want to keep this as low as possible, I bumped to 250k
, I think if we reach this, we need to optimise the authentication flow not increase gas
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 but lets please make the number higher
What is the purpose of the change
The current estimate for unauthenticated gas is far to low, the node ran into issues when we tried to execute transaction using fee tokens other than
uosmo
as the was another read from the store.We increase the unauthenticated gas from 120_000 => 200_000 to enable multiple fee tokens
How to test
1 run
in-place-testnet
osmosisd q smartaccount params
2 run tests in the v26 upgrade folder
cd ./app/upgrades/v26
go test ./...