diff --git a/lib/MojoX/JSON/RPC/Client.pm b/lib/MojoX/JSON/RPC/Client.pm index ef47b2b..d644c48 100644 --- a/lib/MojoX/JSON/RPC/Client.pm +++ b/lib/MojoX/JSON/RPC/Client.pm @@ -108,7 +108,7 @@ sub _process_result { } # Check if RPC call is succesfull - if ( !( $tx_res->is_status_class(200) || $tx_res->is_status_class(400) ) ) + if ( !( $tx_res->is_success() || $tx_res->is_client_error() ) ) { return; }