Skip to content

Commit 4de89e9

Browse files
authored
core/vm: minor code formatting (#28199)
Adding a space beween function opOrigin() and opcCaller() in instruciton.go. Adding a space beween function opkeccak256() and opAddress() in instruciton.go.
1 parent 4985d83 commit 4de89e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/vm/instructions.go

+2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func opKeccak256(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) (
251251
size.SetBytes(interpreter.hasherBuf[:])
252252
return nil, nil
253253
}
254+
254255
func opAddress(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
255256
scope.Stack.push(new(uint256.Int).SetBytes(scope.Contract.Address().Bytes()))
256257
return nil, nil
@@ -267,6 +268,7 @@ func opOrigin(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]b
267268
scope.Stack.push(new(uint256.Int).SetBytes(interpreter.evm.Origin.Bytes()))
268269
return nil, nil
269270
}
271+
270272
func opCaller(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
271273
scope.Stack.push(new(uint256.Int).SetBytes(scope.Contract.Caller().Bytes()))
272274
return nil, nil

0 commit comments

Comments
 (0)