mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 02:24:30 +00:00
extra type check in electrumx response handling
This commit is contained in:
parent
ab9e734b80
commit
065063c600
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||||
|
|
Loading…
Reference in a new issue