Interface and abi generator interface
This commit is contained in:
@@ -12,6 +12,7 @@ from chainlib.eth.tx import TxFormat
|
||||
from chainlib.eth.contract import ABIContractEncoder
|
||||
from chainlib.eth.contract import ABIContractType
|
||||
from cic_contracts.unittest import bytecode
|
||||
from cic_contracts import Name
|
||||
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
contract_dir = os.path.join(script_dir, '..', '..', 'solidity')
|
||||
@@ -29,7 +30,7 @@ class TestEthSeal(EthTesterCase):
|
||||
self.conn = RPCConnection.connect(self.chain_spec, 'default')
|
||||
nonce_oracle = RPCNonceOracle(self.accounts[0], self.conn)
|
||||
|
||||
code = bytecode('seal')
|
||||
code = bytecode(Name.SEAL)
|
||||
|
||||
txf = TxFactory(self.chain_spec, signer=self.signer, nonce_oracle=nonce_oracle)
|
||||
tx = txf.template(self.accounts[0], None, use_nonce=True)
|
||||
@@ -42,6 +43,7 @@ class TestEthSeal(EthTesterCase):
|
||||
r = self.conn.do(o)
|
||||
self.assertEqual(r['status'], 1)
|
||||
self.address = r['contract_address']
|
||||
self.contracts['seal'] = self.address
|
||||
logg.debug('published seal test contract with hash {}'.format(r))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user