Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqjasoria committed Sep 5, 2024
1 parent c5ed85c commit 5bb362f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
}
}

var ret []byte
var err error
ret, err = evm.interpreter.Run(contract, nil, false)
ret, err := evm.interpreter.Run(contract, nil, false)

// Check whether the max code size has been exceeded, assign err if the case.
if err == nil && evm.chainRules.IsEIP158 && len(ret) > params.MaxCodeSize {
Expand Down

0 comments on commit 5bb362f

Please sign in to comment.