Skip to content

Commit

Permalink
chore: make function comments match function names
Browse files Browse the repository at this point in the history
Signed-off-by: longxiangqiao <longxiangqiao@qq.com>
  • Loading branch information
longxiangqiao committed Jan 8, 2025
1 parent 5748b50 commit 2ebf1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/evm/keeper/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (k Keeper) buildTxContext(ctx context.Context, caller common.Address, fee t
}, nil
}

// createEVM creates a new EVM instance.
// CreateEVM creates a new EVM instance.
func (k Keeper) CreateEVM(ctx context.Context, caller common.Address, tracer *tracing.Hooks) (context.Context, *vm.EVM, error) {
params, err := k.Params.Get(ctx)
if err != nil {
Expand Down Expand Up @@ -347,7 +347,7 @@ func (k Keeper) EVMCreate(ctx context.Context, caller common.Address, codeBz []b
return k.EVMCreateWithTracer(ctx, caller, codeBz, value, nil, accessList, nil)
}

// EVMCreate creates a new contract with the given code.
// EVMCreate2 creates a new contract with the given code.
func (k Keeper) EVMCreate2(ctx context.Context, caller common.Address, codeBz []byte, value *uint256.Int, salt uint64, accessList coretype.AccessList) ([]byte, common.Address, types.Logs, error) {
return k.EVMCreateWithTracer(ctx, caller, codeBz, value, &salt, accessList, nil)
}
Expand Down

0 comments on commit 2ebf1e0

Please sign in to comment.