libplanet icon indicating copy to clipboard operation
libplanet copied to clipboard

`IStore.IncreaseTxNonce()` disallows the nonce to be less than zero

Open dahlia opened this issue 4 years ago • 2 comments

For example, the following code shouldn't be succeeded or make any updates on the store, but throw any exception instead:

IStore store = ...;
Guid chainId = ...;
Address addr = ...;

store.IncreaseTxNonce(chainId, addr, -1 - store.GetTxNonce(chainId, addr));

InvalidOperationException would be appropriate for such case.

dahlia avatar Oct 23 '21 16:10 dahlia

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

stale[bot] avatar Mar 02 '22 09:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

stale[bot] avatar May 01 '22 13:05 stale[bot]