lib/universa/contract.rb in universa-3.9.14 vs lib/universa/contract.rb in universa-3.9.14.1
- old
+ new
@@ -236,10 +236,10 @@
# end
# Helper for many token-like contracts containing state.data.amount
# @return [BigDecimal] amount or nil
def amount
- v = state[:amount] and BigDecimal.new(v.to_s)
+ v = state[:amount] and BigDecimal(v.to_s)
end
# Write helper for many token-like contracts containing state.data.amount. Saves value
# in state.data.anomount and properly encodes it so it will be preserved on packing.
#
\ No newline at end of file