]> git.ardis.lu - erc-1967-inspector/commit
Wrap response in array if it is not an array
authorArdis Lu <ardisglu@gmail.com>
Thu, 10 Apr 2025 03:45:47 +0000 (20:45 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 10 Apr 2025 03:45:47 +0000 (20:45 -0700)
commit346bb8f911fb4e5767f27fa94ddd4ca4ebd48748
treea4ffb696da970559270bdd8b55d70736f17ec417
parent135cfb22b783687c89ae22a69c47289082678eea
Wrap response in array if it is not an array

Some RPC providers (e.g., Google Blockchain RPC) will respond with a single object on error, which is not compliant with the JSON-RPC spec. Wrapping the response in an array then flattening ensures the result is an iterable, one-dimensional array.
index.html
This page took 0.032283 seconds and 4 git commands to generate.