@@ -433,7 +433,7 @@ func New(
433
433
// this line is used by starport scaffolding # stargate/app/storeKey
434
434
)
435
435
tkeys := sdk .NewTransientStoreKeys (paramstypes .TStoreKey , evmtypes .TransientStoreKey )
436
- memKeys := sdk .NewMemoryStoreKeys (capabilitytypes .MemStoreKey , dexmoduletypes .MemStoreKey , banktypes .DeferredCacheStoreKey , evmtypes . MemStoreKey , oracletypes .MemStoreKey )
436
+ memKeys := sdk .NewMemoryStoreKeys (capabilitytypes .MemStoreKey , dexmoduletypes .MemStoreKey , banktypes .DeferredCacheStoreKey , oracletypes .MemStoreKey )
437
437
438
438
app := & App {
439
439
BaseApp : bApp ,
@@ -622,7 +622,7 @@ func New(
622
622
panic (fmt .Sprintf ("error while creating receipt store: %s" , err ))
623
623
}
624
624
}
625
- app .EvmKeeper = * evmkeeper .NewKeeper (keys [evmtypes .StoreKey ], memKeys [ evmtypes . MemStoreKey ],
625
+ app .EvmKeeper = * evmkeeper .NewKeeper (keys [evmtypes .StoreKey ],
626
626
tkeys [evmtypes .TransientStoreKey ], app .GetSubspace (evmtypes .ModuleName ), app .receiptStore , app .BankKeeper ,
627
627
& app .AccountKeeper , & app .StakingKeeper , app .TransferKeeper ,
628
628
wasmkeeper .NewDefaultPermissionKeeper (app .WasmKeeper ), & app .WasmKeeper )
@@ -1589,6 +1589,7 @@ func (app *App) ProcessBlock(ctx sdk.Context, txs [][]byte, req BlockProcessRequ
1589
1589
beginBlockResp := app .BeginBlock (ctx , beginBlockReq )
1590
1590
events = append (events , beginBlockResp .Events ... )
1591
1591
1592
+ evmTxs := make ([]* evmtypes.MsgEVMTransaction , len (txs )) // nil for non-EVM txs
1592
1593
txResults := make ([]* abci.ExecTxResult , len (txs ))
1593
1594
typedTxs := app .DecodeTransactionsConcurrently (ctx , txs )
1594
1595
@@ -1598,6 +1599,11 @@ func (app *App) ProcessBlock(ctx sdk.Context, txs [][]byte, req BlockProcessRequ
1598
1599
prioritizedResults , ctx := app .ExecuteTxsConcurrently (ctx , prioritizedTxs , prioritizedTypedTxs , prioritizedIndices )
1599
1600
for relativePrioritizedIndex , originalIndex := range prioritizedIndices {
1600
1601
txResults [originalIndex ] = prioritizedResults [relativePrioritizedIndex ]
1602
+ if emsg := evmtypes .GetEVMTransactionMessage (prioritizedTypedTxs [relativePrioritizedIndex ]); emsg != nil && ! emsg .IsAssociateTx () {
1603
+ evmTxs [originalIndex ] = emsg
1604
+ } else {
1605
+ evmTxs [originalIndex ] = nil
1606
+ }
1601
1607
}
1602
1608
1603
1609
// Finalize all Bank Module Transfers here so that events are included for prioritiezd txs
@@ -1610,8 +1616,14 @@ func (app *App) ProcessBlock(ctx sdk.Context, txs [][]byte, req BlockProcessRequ
1610
1616
otherResults , ctx := app .ExecuteTxsConcurrently (ctx , otherTxs , otherTypedTxs , otherIndices )
1611
1617
for relativeOtherIndex , originalIndex := range otherIndices {
1612
1618
txResults [originalIndex ] = otherResults [relativeOtherIndex ]
1619
+ if emsg := evmtypes .GetEVMTransactionMessage (otherTypedTxs [relativeOtherIndex ]); emsg != nil && ! emsg .IsAssociateTx () {
1620
+ evmTxs [originalIndex ] = emsg
1621
+ } else {
1622
+ evmTxs [originalIndex ] = nil
1623
+ }
1613
1624
}
1614
1625
app .EvmKeeper .SetTxResults (txResults )
1626
+ app .EvmKeeper .SetMsgs (evmTxs )
1615
1627
1616
1628
// Finalize all Bank Module Transfers here so that events are included
1617
1629
lazyWriteEvents := app .BankKeeper .WriteDeferredBalances (ctx )
0 commit comments