Add signer test for ciceth
This commit is contained in:
@@ -24,7 +24,9 @@ class CICEth:
|
||||
self.outputs = {}
|
||||
for k in resources.keys():
|
||||
self.outputs[k] = None
|
||||
|
||||
self.tx_format = TxFormat.RLP_SIGNED
|
||||
if self.signer == None:
|
||||
self.tx_format = TxFormat.RAW_ARGS
|
||||
|
||||
|
||||
def process_token(self):
|
||||
@@ -32,15 +34,17 @@ class CICEth:
|
||||
|
||||
|
||||
def process_token_index(self):
|
||||
c = TokenUniqueSymbolIndex(self.chain_spec) # tx_format = None
|
||||
if self.signer == None:
|
||||
tx_format = TxFormat.RAW_ARGS
|
||||
c = TokenUniqueSymbolIndex(self.chain_spec, signer=self.signer) # tx_format = None
|
||||
|
||||
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=tx_format)
|
||||
if self.rpc == None:
|
||||
self.outputs['token_index'] = o
|
||||
o = c.register(contract_address, signer_address, self.token_address, tx_format=self.tx_format)
|
||||
if self.rpc != None:
|
||||
pass
|
||||
elif self.signer != None:
|
||||
self.outputs['token_index'] = o[1]
|
||||
else:
|
||||
self.outputs['token_index'] = o
|
||||
|
||||
|
||||
def process(self):
|
||||
|
||||
Reference in New Issue
Block a user