From f6f08c67103a7118112d4a317f43a28f6ba5fd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nina=20/=20=E1=83=9C=E1=83=98=E1=83=9C=E1=83=90?= Date: Wed, 18 Sep 2024 13:48:10 +0200 Subject: [PATCH] Update x/blob/types/payforblob.go Co-authored-by: Rootul P --- x/blob/types/payforblob.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/blob/types/payforblob.go b/x/blob/types/payforblob.go index 4ce9331559..88f583ba80 100644 --- a/x/blob/types/payforblob.go +++ b/x/blob/types/payforblob.go @@ -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) }