Ejemplo n.º 1
0
 def get_URI(self):
     from electrum_mona.util import create_bip21_uri
     amount = self.amount
     if amount:
         a, u = self.amount.split()
         assert u == self.app.base_unit
         amount = Decimal(a) * pow(10, self.app.decimal_point())
     return create_bip21_uri(self.address, amount, self.message)
Ejemplo n.º 2
0
 def get_URI(self):
     from electrum_mona.util import create_bip21_uri
     amount = self.app.get_amount(self.amount)
     return create_bip21_uri(self.address, amount, self.message)