There was an error while loading. Please reload this page.
1 parent 8383ed7 commit 3082162Copy full SHA for 3082162
lib/logstash/inputs/protocols/ethereum.rb
@@ -51,9 +51,13 @@ def unhex(data, num_keys)
51
next if value.nil? or value.kind_of?(Array)
52
53
if num_keys.include? key
54
- data[key] = value.to_decimal()
+ if(value.methods.include? :to_decimal)
55
+ data[key] = value.to_decimal()
56
+ end
57
else
- data[key] = value.to_string()
58
+ if(value.methods.include? :to_string)
59
+ data[key] = value.to_string()
60
61
end
62
63
0 commit comments