Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-sammy committed Nov 2, 2023
1 parent ca632da commit 7f4e322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/evm/keeper/chainKeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,8 @@ func (k chainKeeper) EnqueueConfirmedEvent(ctx sdk.Context, id types.EventID) er
}

switch event.GetEvent().(type) {
// we no longer allow Event_ContractCall to be enqueued in the EVM module, but
// to be enqueued in the nexus module as a general message instead
// the missing Event_ContractCall is no longer allowed to be enqueued in the
// EVM module, it must be routed through the nexus module instead
case *types.Event_ContractCallWithToken,
*types.Event_TokenSent,
*types.Event_Transfer,
Expand Down
2 changes: 2 additions & 0 deletions x/evm/keeper/vote_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ func (v voteHandler) handleEvent(ctx sdk.Context, ck types.ChainKeeper, event ty
return err
}

// Event_ContractCall is no longer directly handled by the EVM module,
// which bypassed nexus routing
switch event.GetEvent().(type) {
case *types.Event_ContractCall:
if err := v.handleContractCall(ctx, event); err != nil {
Expand Down

0 comments on commit 7f4e322

Please sign in to comment.