lib/universa/client.rb in universa-3.11.4.3 vs lib/universa/client.rb in universa-3.11.4.4
- old
+ new
@@ -222,12 +222,12 @@
def initialize(universa_contract_state)
@source = universa_contract_state
end
# get errors reported by the network
- # @return [Array(String)] possibly empty array
+ # @return [Array(Hash)] possibly empty array of error data
def errors
- @_errors ||= @source.errors&.map(&:to_s) || []
+ @_errors ||= @source.errors || []
rescue
"failed to extract errors: #$!"
end
# @return true if the state contain errors