Implement cic-contracts unittest hardness, implement tests for capped, writer

This commit is contained in:
lash 2023-06-08 14:35:37 +01:00
parent 7c6493357d
commit 682fa9ee5f
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,10 @@ class TestCappedToken(EthTesterCase):
def setUp(self): def setUp(self):
super(TestCappedToken, self).setUp() super(TestCappedToken, self).setUp()
self.publish()
def publish(self):
self.conn = RPCConnection.connect(self.chain_spec, 'default') self.conn = RPCConnection.connect(self.chain_spec, 'default')
nonce_oracle = RPCNonceOracle(self.accounts[0], conn=self.conn) nonce_oracle = RPCNonceOracle(self.accounts[0], conn=self.conn)
c = CappedToken(self.chain_spec, signer=self.signer, nonce_oracle=nonce_oracle) c = CappedToken(self.chain_spec, signer=self.signer, nonce_oracle=nonce_oracle)

View File

@ -1,3 +1,4 @@
eth_tester==0.5.0b3 eth_tester==0.5.0b3
py-evm==0.3.0a20 py-evm==0.3.0a20
pytest==6.0.1 pytest==6.0.1
cic-contracts~=0.3.3

View File

@ -181,7 +181,6 @@ contract CappedToken {
return 2; return 2;
} }
return 0; return 0;
} }
// Implements ERC20 // Implements ERC20