laconicd/types/dynamic_fee.go

12 lines
337 B
Go
Raw Normal View History

2022-10-10 10:38:33 +00:00
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
}