Prevent passing negative nonce because of prefetch
This commit is contained in:
parent
0c6137656f
commit
7d87345e98
|
@ -531,6 +531,10 @@ const getTransactionBySenderAndNonceFetcher = async ({
|
|||
sender,
|
||||
nonce,
|
||||
}: TransactionBySenderAndNonceKey): Promise<string | undefined> => {
|
||||
if (nonce < 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const result = (await provider.send("ots_getTransactionBySenderAndNonce", [
|
||||
sender,
|
||||
nonce,
|
||||
|
|
Loading…
Reference in New Issue