From fb574d709e3aca9e7cef81f26c6bff5d8cca4342 Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Fri, 27 Sep 2024 03:21:37 -0400 Subject: [PATCH] Fix provider bug --- frontend/src/utils/Consts.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/utils/Consts.js b/frontend/src/utils/Consts.js index fd7fab38..934ff3c3 100644 --- a/frontend/src/utils/Consts.js +++ b/frontend/src/utils/Consts.js @@ -41,7 +41,11 @@ export const STARKNET_CHAIN_ID = ? constants.StarknetChainId.SN_MAIN : constants.StarknetChainId.SN_SEPOLIA; -export const provider = new RpcProvider([NODE_URL], STARKNET_CHAIN_ID); +//export const provider = new RpcProvider([NODE_URL], STARKNET_CHAIN_ID); +export const provider = new RpcProvider({ + nodeUrl: NODE_URL, + chainId: STARKNET_CHAIN_ID +}); export const allowedMethods = [ { @@ -103,10 +107,6 @@ export const allowedMethods = [ { 'Contract Address': process.env.REACT_APP_STARKNET_CONTRACT_ADDRESS, selector: 'place_pixel' - }, - { - 'Contract Address': process.env.REACT_APP_STARKNET_CONTRACT_ADDRESS, - selector: 'entrypoint' } ];