From 747ed27a8105bff56c27d2fcd4cc2852c31c92f0 Mon Sep 17 00:00:00 2001 From: Vladimir Kamarzin Date: Mon, 2 Apr 2018 23:59:59 +0500 Subject: [PATCH] Pass bitshares_instance to Price() from Order() When loading Order as Price bitshares_instance was got lost. Closes: #67 --- bitshares/price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitshares/price.py b/bitshares/price.py index a828886d..cc7b3928 100644 --- a/bitshares/price.py +++ b/bitshares/price.py @@ -460,7 +460,7 @@ def __init__(self, *args, bitshares_instance=None, **kwargs): self["id"] = args[0].get("id") else: # Try load Order as Price - super(Order, self).__init__(*args, **kwargs) + super(Order, self).__init__(*args, bitshares_instance=self.bitshares, **kwargs) def __repr__(self): if "deleted" in self and self["deleted"]: