Advertisement
Guest User

Untitled

a guest
May 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.54 KB | None | 0 0
  1. diff --git a/bitshares/amount.py b/bitshares/amount.py
  2. index cf21d44..0ef1da1 100644
  3. --- a/bitshares/amount.py
  4. +++ b/bitshares/amount.py
  5. @@ -297,7 +297,7 @@ class Amount(dict):
  6.  
  7.      def __eq__(self, other):
  8.          if isinstance(other, Amount):
  9. -            assert other["asset"] == self["asset"]
  10. +            assert other["asset"] == self["asset"], '{}, {}'.format(dict(other["asset"]), dict(self["asset"]))
  11.              return self["amount"] == other["amount"]
  12.          else:
  13.              return self["amount"] == float(other or 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement