From 2cb34c46eeb3ae38ad6868f7297ea7c30364c61c Mon Sep 17 00:00:00 2001 From: Jan Gehring Date: Fri, 6 Jan 2017 11:53:02 +0100 Subject: [PATCH] don't use deprecated is_status_class method --- lib/MojoX/JSON/RPC/Client.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }