cic-eth: Introduce transfer authorization contract

This commit is contained in:
Louis Holbrook
2021-03-04 15:06:14 +00:00
committed by Philip Wafula
parent 1e9bf6b4d3
commit 8240e58c0a
29 changed files with 312 additions and 366 deletions

View File

@@ -148,7 +148,11 @@ class Handler:
return
u = Person.deserialize(o)
original_address = u.identities[old_chain_spec.engine()]['{}:{}'.format(old_chain_spec.common_name(), old_chain_spec.network_id())][0]
balance = self.balances[original_address]
try:
balance = self.balances[original_address]
except KeyError as e:
logg.error('balance get fail orig {} new {}'.format(original_address, recipient))
return
# TODO: store token object in handler ,get decimals from there
multiplier = 10**6

View File

@@ -1,3 +1,3 @@
cic-base[full_graph]==0.1.1a10
cic-eth==0.10.0a36
cic-base[full_graph]==0.1.1a12
cic-eth==0.10.0a37
cic-types==0.1.0a8