core/vm: go format

This commit is contained in:
Martin Holst Swende 2024-04-16 12:13:33 +02:00
parent 5b48bdd72b
commit 7e2b22ec98
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -890,9 +890,9 @@ func opPush1(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]by
func makePush(size uint64, pushByteSize int) executionFunc { func makePush(size uint64, pushByteSize int) executionFunc {
return func(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) { return func(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
var ( var (
codeLen = len(scope.Contract.Code) codeLen = len(scope.Contract.Code)
start = min(codeLen, int(*pc+1)) start = min(codeLen, int(*pc+1))
end = min(start+pushByteSize, codeLen) end = min(start+pushByteSize, codeLen)
) )
scope.Stack.push(new(uint256.Int).SetBytes( scope.Stack.push(new(uint256.Int).SetBytes(
common.RightPadBytes( common.RightPadBytes(