Skip to content
Unverified Commit ce48c144 authored by Tarik Gul's avatar Tarik Gul Committed by GitHub
Browse files

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
parent 59aabc30
Pipeline #191159 passed with stages
in 18 minutes and 59 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment