From 3695db552bb1c6ef90dd81d6a7e35d0f24e75e6c Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Tue, 1 Feb 2022 15:19:42 -0300 Subject: [PATCH] Handle negative nonce --- src/AddressTransactionByNonce.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AddressTransactionByNonce.tsx b/src/AddressTransactionByNonce.tsx index f7e1a8a..21324f6 100644 --- a/src/AddressTransactionByNonce.tsx +++ b/src/AddressTransactionByNonce.tsx @@ -43,6 +43,9 @@ const AddressTransactionByNonce: React.FC = ({ } } else { nonce = parseInt(rawNonce, 10); + if (nonce < 0) { + nonce = NaN; + } } // Given all base params are determined, get the corresponding tx