Commit 8ee12347 authored by hezhengjun's avatar hezhengjun Committed by vipwzw

correct ineffectual to fix linter error

parent 5817fe0e
......@@ -40,7 +40,6 @@ func run(evm *EVM, contract *Contract, input []byte, readOnly bool) (ret []byte,
if evm.cfg.IsDappFork(evm.StateDB.GetBlockHeight(), "evm", evmtypes.ForkEVMYoloV1) {
//precompiles = PrecompiledContractsYoloV1
}
precompiles = PrecompiledContractsBerlin
if p := precompiles[contract.CodeAddr.ToHash160()]; p != nil {
ret, contract.Gas, err = RunPrecompiledContract(p, input, contract.Gas)
return
......@@ -425,7 +424,7 @@ func (evm *EVM) StaticCall(caller ContractRef, addr common.Address, input []byte
gas = 0
}
}
return ret, contract.Gas, err
return ret, gas, err
}
// Create 此方法提供合约外部创建入口;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment