Closed TarikGul closed 1 year ago
closes: https://github.com/paritytech/txwrapper-core/issues/286
This allows for two new keys in the getRegistryBase function for injecting types to the registry.
getRegistryBase
typesBundle: for adding OverrideBundleTypes to the knownTypes of the registry.
typesBundle
OverrideBundleTypes
knownTypes
registry
additionalTypes: for registering any custom types you wish to construct that are not included in the specTypes field.
additionalTypes
specTypes
getRegistry
closes: https://github.com/paritytech/txwrapper-core/issues/286
Summary
This allows for two new keys in the
getRegistryBase
function for injecting types to the registry.typesBundle
: for addingOverrideBundleTypes
to theknownTypes
of theregistry
.additionalTypes
: for registering any custom types you wish to construct that are not included in thespecTypes
field.Affected Function
@substrate/txwrapper-polkadot
getRegistry
@substrate/txwrapper-core
getRegistryBase
@substrate/txwrapper-registry
getRegistry