24 lines
374 B
Go
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
|
|
}
|