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