Add SubAddress class

This commit is contained in:
Michał Sałaban 2017-11-30 03:43:34 +01:00
parent 40fd464a12
commit 45516ec33f
3 changed files with 68 additions and 9 deletions

View file

@ -7,7 +7,7 @@ import requests
from .. import exceptions
from ..account import Account
from ..address import Address
from ..address import address
from ..numbers import from_atomic, to_atomic
_log = logging.getLogger(__name__)
@ -79,7 +79,7 @@ class JSONRPC(object):
data = {
'account_index': account,
'destinations': list(map(
lambda dst: {'address': str(Address(dst[0])), 'amount': to_atomic(dst[1])},
lambda dst: {'address': str(address(dst[0])), 'amount': to_atomic(dst[1])},
destinations)),
'mixin': mixin,
'priority': priority,