Skip to content

Commit

Permalink
Update x/blob/types/payforblob.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rootul P <[email protected]>
  • Loading branch information
ninabarbakadze and rootulp authored Sep 18, 2024
1 parent 9603fd2 commit f6f08c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/blob/types/payforblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ func EstimateGas(blobSizes []uint32, gasPerByte uint32, txSizeCost uint64) uint6
return GasToConsume(blobSizes, gasPerByte) + (txSizeCost * BytesPerBlobInfo * uint64(len(blobSizes))) + PFBGasFixedCost
}

// DefaultEstimateGas runs EstimateGas with the system defaults. The network may change these values
// through governance, thus this function should predominantly be used in testing.
// DefaultEstimateGas runs EstimateGas with the system defaults.
func DefaultEstimateGas(blobSizes []uint32) uint64 {
return EstimateGas(blobSizes, appconsts.DefaultGasPerBlobByte, appconsts.DefaultTxSizeCostPerByte)
}
Expand Down

0 comments on commit f6f08c6

Please sign in to comment.