I have two transactions with different signers. First transaction changes the account state, and the second one requires that account state to be changed as a constraint (it's some boolean value). I use confirmTransaction()
method to wait for the first transaction to end. When I specify confirmed
commitment as a parameter in the method, the second transaction fails since the state is not changed yet. When I specify finalized
commitment, second transactions passes but the conformations takes too long (about 10 seconds)
Is there any way to speed up this process without waiting so long for conformation of the first one?