fix: decode `Bytes` types for `/runtime/metadata` correctly (#907)
* fix: hacky solution to properly decode Bytes * add ISanitizeOptions type * fix: add sanitizeMetadataExceptions and options * add options to the necessary controllers * add registry to the options * fix logic to work with all types * add tests * pass in registry to options * remove old comments * cleanup * correctly sanitize non integer values using sanitizeNumbers * make sure options registry metadata matches rpc metadata response * fix grumbles for inline comments * add clarifying comment * fix bug with option types, and large multiple type name fields * destructure * add type comments in tests * inline comments * add a test for Option<u128> * fix sanitizeOptions to have metadataOpts * add logic for multiple runtimes, and not just v14
Please register or sign in to comment