Skip to content

Commit

Permalink
Fix provider bug
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Sep 27, 2024
1 parent 744add0 commit fb574d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/utils/Consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down Expand Up @@ -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'
}
];

Expand Down

0 comments on commit fb574d7

Please sign in to comment.