lib/tapyrus/rpc/request_handler.rb in tapyrus-0.2.13 vs lib/tapyrus/rpc/request_handler.rb in tapyrus-0.3.0

- old
+ new

@@ -94,10 +94,10 @@ def decodescript(hex_script) begin script = Tapyrus::Script.parse_from_payload(hex_script.htb) h = script.to_h h.delete(:hex) - h[:p2sh] = script.to_p2sh.addresses.first unless script.p2sh? + h[:p2sh] = script.to_p2sh.to_addr unless script.p2sh? h rescue Exception raise ArgumentError.new('Script decode failed') end end