diff --git a/components/KeyManagerNonceChecker/KeyManagerNonceChecker.tsx b/components/KeyManagerNonceChecker/KeyManagerNonceChecker.tsx index af89944..54b68ff 100644 --- a/components/KeyManagerNonceChecker/KeyManagerNonceChecker.tsx +++ b/components/KeyManagerNonceChecker/KeyManagerNonceChecker.tsx @@ -1,9 +1,10 @@ /* eslint-disable react/no-unescaped-entities */ -import { useState } from 'react'; +import { useContext, useState } from 'react'; import LSP6KeyManager from '@lukso/lsp-smart-contracts/artifacts/LSP6KeyManager.json'; import useWeb3 from '../../hooks/useWeb3'; +import { NetworkContext } from '../../contexts/NetworksContext'; const KeyManagerNonceChecker: React.FC = () => { const web3 = useWeb3(); @@ -12,6 +13,7 @@ const KeyManagerNonceChecker: React.FC = () => { const [callerAddress, setCallerAddress] = useState(''); const [channelId, setChannelId] = useState(''); const [nonce, setNonce] = useState(''); + const { network } = useContext(NetworkContext); const [showNonce, setShowNonce] = useState(false); const [error, showError] = useState(false); @@ -51,6 +53,10 @@ const KeyManagerNonceChecker: React.FC = () => { return (