libplanet
libplanet copied to clipboard
`IStore.IncreaseTxNonce()` disallows the nonce to be less than zero
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.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.