-
Notifications
You must be signed in to change notification settings - Fork 139
Feat: tf pull upstream #913
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
Conversation
x/tokenfactory/keeper/before_send.go
Outdated
| // consume gas used for calling contract to the parent ctx | ||
| c.GasMeter().ConsumeGas(childCtx.GasMeter().GasConsumed(), "track before send gas") | ||
| childCtx := c.WithGasMeter(storetypes.NewGasMeter(types.BeforeSendHookGasLimit)) | ||
| _, err = k.contractKeeper.Sudo(childCtx.WithEventManager(em), cwAddr, msgBz) |
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.
-
In the line above, you're creating a new context with a gas manager, and then again, line later, a new context with an event manager - maybe it's better to combine both
Withcalls into a single statement? -
What is the reason for creating a new event manager? We're essentially ignoring all events from sudo calls.
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.
You are right, fixed that
This PR pulls recent changes in the tokenfactory module from the Osmosis upstream and more specifically:
Task: https://hadronlabs.atlassian.net/jira/software/projects/NTRN/boards/3?selectedIssue=NTRN-518