Commit 84462918 authored by vicotor's avatar vicotor

fix bug

parent fb8f3a91
......@@ -56,15 +56,15 @@ func NewEVMBlockContext(header *evmtypes.Header, chain ChainContext, author *met
} else {
beneficiary = *author
}
//if header.BaseFee != nil {
// baseFee = new(big.Int).Set(header.BaseFee)
//}
if header.BaseFee != nil {
baseFee = new(big.Int).Set(header.BaseFee)
}
//if header.ExcessBlobGas != nil {
// blobBaseFee = eip4844.CalcBlobFee(chain.Config(), header)
//}
//if header.Difficulty.Sign() == 0 {
// random = &header.MixDigest
//}
if header.Difficulty.Sign() == 0 {
random = &header.MixDigest
}
return vm.BlockContext{
CanTransfer: CanTransfer,
Transfer: Transfer,
......
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