From d441aeddf7e946e95972130b7c8070c82c918879 Mon Sep 17 00:00:00 2001 From: liangxw Date: Wed, 6 Dec 2023 11:14:38 +0800 Subject: [PATCH] Network id convert to hex must be number #100 --- frontend/src/components/Dapp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Dapp.js b/frontend/src/components/Dapp.js index 32d3f605..d4a73b20 100644 --- a/frontend/src/components/Dapp.js +++ b/frontend/src/components/Dapp.js @@ -20,7 +20,7 @@ import { WaitingForTransactionMessage } from "./WaitingForTransactionMessage"; import { NoTokensMessage } from "./NoTokensMessage"; // This is the default id used by the Hardhat Network -const HARDHAT_NETWORK_ID = '31337'; +const HARDHAT_NETWORK_ID = 31337; // This is an error code that indicates that the user canceled a transaction const ERROR_CODE_TX_REJECTED_BY_USER = 4001;