WIP full process
This commit is contained in:
parent
a5cdcb3900
commit
86edabbb5f
@ -146,10 +146,11 @@ class CICEth:
|
||||
|
||||
|
||||
def process_token_index(self):
|
||||
c = TokenUniqueSymbolIndex(self.chain_spec, signer=self.signer)
|
||||
c = TokenUniqueSymbolIndex(self.chain_spec, signer=self.signer, nonce_oracle=self.nonce_oracle, gas_oracle=self.fee_oracle)
|
||||
|
||||
contract_address = self.resources['token_index']['reference']
|
||||
signer_address = self.resources['token_index']['key_address']
|
||||
|
||||
o = c.register(contract_address, signer_address, self.token_address, tx_format=self.tx_format)
|
||||
r = None
|
||||
if self.rpc != None:
|
||||
@ -164,7 +165,7 @@ class CICEth:
|
||||
|
||||
|
||||
def process_address_declarator(self):
|
||||
c = Declarator(self.chain_spec, signer=self.signer)
|
||||
c = Declarator(self.chain_spec, signer=self.signer, nonce_oracle=self.nonce_oracle, gas_oracle=self.fee_oracle)
|
||||
|
||||
contract_address = self.resources['address_declarator']['reference']
|
||||
signer_address = self.resources['address_declarator']['key_address']
|
||||
@ -184,6 +185,7 @@ class CICEth:
|
||||
|
||||
|
||||
def process(self):
|
||||
tasks = []
|
||||
self.token_address = self.resources['token']['reference']
|
||||
if self.token_address == None:
|
||||
tasks.append('token')
|
||||
@ -195,7 +197,7 @@ class CICEth:
|
||||
tasks.append(k)
|
||||
|
||||
for task in tasks:
|
||||
getattr(self, 'process_̈́ ' + task)()
|
||||
getattr(self, 'process_' + task)()
|
||||
|
||||
|
||||
def new(resources, proof, signer_hint=None):
|
||||
|
Loading…
Reference in New Issue
Block a user