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 committed Jan 11, 2024
1 parent fa168e6 commit e054628
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 @@ -525,6 +525,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 e054628

Please sign in to comment.