def doRequestCoins(self, *args, **kwargs): """ Action method. """ contract_chain_node.get_coins_by_chain( chain='supplier_customer', provider_idurl=my_id.getLocalID(), consumer_idurl=self.customer_idurl, ).addCallbacks( self._on_query_result, self._on_query_failed, )
def doRequestCoins(self, *args, **kwargs): """ Action method. """ from coins import contract_chain_node contract_chain_node.get_coins_by_chain( chain='supplier_customer', provider_idurl=self.supplier_idurl, consumer_idurl=my_id.getIDURL(), ).addCallbacks( self._on_coins_received, self._on_coins_failed, )