Skip to content

Commit

Permalink
fix: balance nil bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Aug 9, 2019
1 parent f9af078 commit 6a6bc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/address_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def address_hash
end

def balance
object.reduce(0) { |sum, addr| sum + addr.balance }
object.reduce(0) { |sum, addr| sum + addr.balance.to_i }
end

def lock_script
Expand Down

0 comments on commit 6a6bc5d

Please sign in to comment.