Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes: #811
Breaking Change -
/pallets/{palletid}/storage/{storageId}
The current endpoint accepts two query parameters
key1
, andkey2
. It is now updated to accept an array query param calledkeys
that accepts and N amount of keys. ORDER MATTERS. The order in which the keys are inputted is the order they will be inputted into the storage query.Example:
/pallets/Staking/storage/ErasValidatorPrefs?keys[]=0x00&keys[]=0x01
The response will no longer have
key1
andkey2
but will now have akeys
field that returns an array of the keys..Example:
Changes (notes) -
/pallets/{palletid}/storage/{storageId}
Query Params
Removed:
key1
andkey2
Added - Order matters
keys
- Needs to be formatted like:?keys[]=<key1>&keys[]=<key2>&keys[]=<key3>
Response
Removed:
key1
andkey2
Added
keys
- ArrayTodo