commit 51c986e6f1d8ed720f1f067fa7276d3d5599c94c
parent 51e71ee6b514def57186e13a2edd5cf505842c84
Author: nolash <dev@holbrook.no>
Date: Fri, 7 May 2021 22:12:28 +0200
Add transfer method, test
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/python/tests/test_app.py b/python/tests/test_app.py
@@ -77,6 +77,8 @@ class Test(EthTesterCase):
token_id = int.from_bytes(b'\xee' * 32, byteorder='big')
c = self._mint(self.accounts[1], token_id)
+ nonce_oracle = RPCNonceOracle(self.accounts[1], self.rpc)
+ c = BadgeToken(self.chain_spec, signer=self.signer, nonce_oracle=nonce_oracle)
(tx_hash_hex, o) = c.transfer_from(self.address, self.accounts[1], self.accounts[1], self.accounts[2], token_id)
r = self.rpc.do(o)