laconicd/types/dynamic_fee.go
2022-10-10 16:08:33 +05:30

12 lines
337 B
Go

package types
import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
)
// HasDynamicFeeExtensionOption returns true if the tx implements the `ExtensionOptionDynamicFeeTx` extension option.
func HasDynamicFeeExtensionOption(any *codectypes.Any) bool {
_, ok := any.GetCachedValue().(*ExtensionOptionDynamicFeeTx)
return ok
}