Skip to content

Commit dc01dba

Browse files
gzliudanhzysvilla
andauthored
core/vm: minor code formatting ethereum#28199 (#1235)
Adding a space beween function opOrigin() and opcCaller() in instruciton.go. Adding a space beween function opkeccak256() and opAddress() in instruciton.go. Co-authored-by: hzysvilla <[email protected]>
1 parent c46302c commit dc01dba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/vm/instructions.go

Lines changed: 2 additions & 0 deletions
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)