extra type check in electrumx response handling

This commit is contained in:
julian 2023-07-04 14:47:16 -06:00
parent ab9e734b80
commit 065063c600

View file

@ -146,7 +146,7 @@ class ElectrumX {
throw response.exception!; throw response.exception!;
} }
if (response.data["error"] != null) { if (response.data is Map && response.data["error"] != null) {
if (response.data["error"] if (response.data["error"]
.toString() .toString()
.contains("No such mempool or blockchain transaction")) { .contains("No such mempool or blockchain transaction")) {