Add publish cli

This commit is contained in:
lash
2023-05-31 16:28:38 +01:00
parent 88546a88a2
commit 92216df990
10 changed files with 161 additions and 30 deletions

View File

@@ -17,8 +17,6 @@ logg = logging.getLogger(__name__)
class TestCappedToken(EthTesterCase):
expire = 0
def setUp(self):
super(TestCappedToken, self).setUp()
self.conn = RPCConnection.connect(self.chain_spec, 'default')
@@ -27,7 +25,7 @@ class TestCappedToken(EthTesterCase):
self.symbol = 'FOO'
self.name = 'Foo Token'
self.decimals = 16
(tx_hash, o) = c.constructor(self.accounts[0], self.name, self.symbol, self.decimals, expire=self.expire)
(tx_hash, o) = c.constructor(self.accounts[0], self.name, self.symbol, self.decimals)
self.rpc.do(o)
o = receipt(tx_hash)
r = self.rpc.do(o)
@@ -37,15 +35,7 @@ class TestCappedToken(EthTesterCase):
self.initial_supply = 1 << 40
(tx_hash, o) = c.mint_to(self.address, self.accounts[0], self.accounts[0], self.initial_supply)
r = self.conn.do(o)
self.conn.do(o)
o = receipt(tx_hash)
r = self.conn.do(o)
self.assertEqual(r['status'], 1)
class TestCappedExpireToken(TestCappedToken):
expire = int(time.time()) + 100000
def setUp(self):
super(TestCappedExpireToken, self).setUp()