def test_generate_order_id(self, private_key, env): wallet = Wallet(private_key=private_key, env=env) wallet.initialise_wallet() order_id = wallet.generate_order_id() assert order_id == f"7F756B1BE93AA2E2FDC3D7CB713ABC206F877802-{wallet.sequence + 1}"
def test_wallet_initialise(self, private_key, env): wallet = Wallet(private_key=private_key, env=env) wallet.initialise_wallet() assert wallet.sequence is not None assert wallet.account_number is not None assert wallet.chain_id is not None
def test_wallet_reload_sequence(self, private_key, env): wallet = Wallet(private_key=private_key, env=env) wallet.initialise_wallet() account_sequence = wallet.sequence wallet.increment_account_sequence() wallet.reload_account_sequence() assert wallet.sequence == account_sequence