givelotus / lotus-vase

A simple reference wallet for Lotus which supports mobile devices.
GNU General Public License v3.0
4 stars 2 forks source link

Fix electrum ping response handling #109

Closed schancel closed 3 years ago

schancel commented 3 years ago

Electrum returns a null result, and null error on ping. However, dart completeError bans the return of nulls. Also, a null response is not an error in this case. Thus, we just want to return null as a good response except when error is explicitly set as a response by the electrum server.