Skip to content

Commit

Permalink
Set TxIndex before generating dependencies (#358)
Browse files Browse the repository at this point in the history
## Describe your changes and provide context
We need to make `TxIndex` available during dependency generation so that
we can derive the corresponding temporary intermediate account and
coinbase account for the message

## Testing performed to validate your change
  • Loading branch information
codchen authored and udpatil committed Mar 14, 2024
1 parent 2e2d463 commit f7a3c0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/accesscontrol/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ func (k Keeper) BuildDependencyDag(ctx sdk.Context, txDecoder sdk.TxDecoder, ant
// add Access ops for msg for anteMsg
dependencyDag.AddAccessOpsForMsg(acltypes.ANTE_MSG_INDEX, txIndex, anteAccessOpsList)

ctx = ctx.WithTxIndex(txIndex)
msgs := tx.GetMsgs()
for messageIndex, msg := range msgs {
if types.IsGovMessage(msg) {
Expand Down

0 comments on commit f7a3c0e

Please sign in to comment.