mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-14 16:37:56 -05:00
11 lines
251 B
Go
11 lines
251 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/scroll-tech/go-ethereum/core/types"
|
|
)
|
|
|
|
// ComputeTraceGasCost computes gascost based on ExecutionResults.StructLogs.GasCost
|
|
func ComputeTraceGasCost(trace *types.BlockTrace) uint64 {
|
|
return trace.Header.GasUsed
|
|
}
|