AndreMiras / EtherollApp

Provably fair dice game running on the Ethereum blockchain
MIT License
57 stars 22 forks source link

FAIL: test_player_roll_dice on Android #77

Closed AndreMiras closed 6 years ago

AndreMiras commented 6 years ago

This is the subtask of #74, the following test is failing on Android.

======================================================================
FAIL: test_player_roll_dice (tests.test_pyetheroll.TestEtheroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./tests/test_pyetheroll.py", line 534, in test_player_roll_dice
    self.assertEqual(m_signTransaction.call_args_list, expected_calls)
AssertionError: [call({'chainId': 1, 'gas': 310000, 'gasPr[294 chars]]*')] != [(({'nonce': 0, 'chainId': 1, 'to': '0x048[293 chars]'),)]
AndreMiras commented 6 years ago

Expected:

[call({'chainId': 1, 'gas': 310000, 'gasPrice': 4000000000, 'nonce': 0, 'value': 100000000000000000, 'to': '0x048717Ea892F23Fb0126F00640e2b18072efd9D2', 'data': '0xdc6dd1520000000000000000000000000000000000000000000000000000000000000032'}, b'\x05\x80\xaf\x81S]T\x8cp\x1cE!l\x8c\xc1%\x8e\x1c\xa1`\x82\xa3\x05\x9c\xd2\x10\xf0XM\x1a:?')]

Actual:

[call({'chainId': 1, 'gas': 310000, 'gasPrice': 4000000000, 'nonce': 0, 'value': 100000000000000010, 'to': '0x048717Ea892F23Fb0126F00640e2b18072efd9D2', 'data': '0xdc6dd1520000000000000000000000000000000000000000000000000000000000000032'}, b'\x05\x80\xaf\x81S]T\x8cp\x1cE!l\x8c\xc1%\x8e\x1c\xa1`\x82\xa3\x05\x9c\xd2\x10\xf0XM\x1a:?')]

The value field some to change, expected is 100000000000000000 and actual 100000000000000010.