Add $isStorageFallback on Codec interface (#5421)
* Add $isStorageFallback on Codec interface * Rename in CHANGELOG * Update specs with new naming * Small formatting adjustments * Abstract values * Adjust initialU8a expectation * Mark old interface as deprecated (& type to never) * Adjust @deprecated comments * Add deprecated interfaces to all
This commit is contained in:
@@ -483,7 +483,7 @@ export class RpcCore {
|
||||
: meta.modifier.isOptional
|
||||
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: true })
|
||||
: input
|
||||
], { blockHash, isOptional: meta.modifier.isOptional, isPedantic: !meta.modifier.isOptional });
|
||||
], { blockHash, isFallback: isEmpty && !!meta.fallback, isOptional: meta.modifier.isOptional, isPedantic: !meta.modifier.isOptional });
|
||||
} catch (error) {
|
||||
throw new Error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:${entryNum}: ${(error as Error).message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user