Increment used address for same wallet transactions
Currently wallet.CurrentAddress function returns the next unused address for an account. This works fine for received transactions but fails to increment the last used address when I send a transaction to my self using an external address. It gets corrected at the next opening of the wallet.
This can be easily recreated by getting an address from wallet.CurrentAddress, send a transaction from same wallet to that address and wallet.CurrentAddress would return same address.
Can you describe how you are creating and sending the transaction?
https://github.com/raedahgroup/mobilewallet/blob/master/mobilewallet.go#L1265
This function handles creating and sending of transactions.