cosmos-sdk/core/testing/gas.go
Alex | Interchain Labs b4e88cc517
test: v2 services helpers and demo using x/bank (#23057)
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
2025-01-14 00:45:41 +00:00

24 lines
374 B
Go

package coretesting
import (
"context"
"cosmossdk.io/core/gas"
)
var _ gas.Service = &TestGasService{}
type TestGasService struct{}
func (m TestGasService) GasMeter(ctx context.Context) gas.Meter {
dummy := unwrap(ctx)
return dummy.gasMeter
}
func (m TestGasService) GasConfig(ctx context.Context) gas.GasConfig {
dummy := unwrap(ctx)
return dummy.gasConfig
}