Skip to content

Commit

Permalink
change logs event types to evm
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Apr 1, 2024
1 parent 199a88a commit a730edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/evm/keeper/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (k Keeper) EVMCallWithTracer(ctx context.Context, caller common.Address, co
attrs[i] = sdk.NewAttribute(types.AttributeKeyLog, string(jsonBz))
}
sdkCtx.EventManager().EmitEvent(sdk.NewEvent(
types.EventTypeLogs,
types.EventTypeEVM,
attrs...,
))

Expand Down Expand Up @@ -345,7 +345,7 @@ func (k Keeper) EVMCreateWithTracer(ctx context.Context, caller common.Address,
attrs[i] = sdk.NewAttribute(types.AttributeKeyLog, string(jsonBz))
}
sdkCtx.EventManager().EmitEvent(sdk.NewEvent(
types.EventTypeLogs,
types.EventTypeEVM,
attrs...,
))

Expand Down
2 changes: 1 addition & 1 deletion x/evm/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types
const (
EventTypeCall = "call"
EventTypeCreate = "create"
EventTypeLogs = "logs"
EventTypeEVM = "evm"

// erc20 events
EventTypeERC20Created = "erc20_created"
Expand Down

0 comments on commit a730edb

Please sign in to comment.