lib/nano_rpc/numeric.rb in nano_rpc-0.20.0 vs lib/nano_rpc/numeric.rb in nano_rpc-0.21.0
- old
+ new
@@ -34,10 +34,10 @@
raise NanoRpc::InvalidRawAmount unless valid_raw_amount?
end
# Ensure at least 10^23
def valid_raw_amount?
- self >= 100_000_000_000_000_000_000_000
+ zero? || self >= 100_000_000_000_000_000_000_000
end
end
end
class Numeric