Skip to content

Commit

Permalink
fix: test error
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Oct 18, 2023
1 parent 9202201 commit 441e37a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions components/identities/updateProfilePic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const UpdateProfilePic: FunctionComponent<UpdateProfilePicProps> = ({
);
const whitelistedContracts: string[] =
process.env.NEXT_PUBLIC_IS_TESTNET === "true"
? NFT_CONTRACT_TESTNET
: NFT_CONTRACT_MAINNET;
? NFT_CONTRACT_TESTNET.map((hex) => hexToDecimal(hex))
: NFT_CONTRACT_MAINNET.map((hex) => hexToDecimal(hex));

useEffect(() => {
if (!identity?.addr) return;
Expand Down
10 changes: 2 additions & 8 deletions utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import { hexToDecimal } from "./feltService";

export const basicAlphabet = "abcdefghijklmnopqrstuvwxyz0123456789-";
export const bigAlphabet = "这来";
export const totalAlphabet = basicAlphabet + bigAlphabet;
export const UINT_128_MAX = (BigInt(1) << BigInt(128)) - BigInt(1);

export const NFT_CONTRACT_TESTNET = [
hexToDecimal(
"0x0154520b48b692bb8b926434bbd24d797e806704af28b6cdcea30ea7db6a996b"
),
"0x0154520b48b692bb8b926434bbd24d797e806704af28b6cdcea30ea7db6a996b",
];

export const NFT_CONTRACT_MAINNET = [
hexToDecimal(
"0x76503062d78f4481be03c9145022d6a4a71ec0719aa07756f79a2384dc7ef16"
),
"0x76503062d78f4481be03c9145022d6a4a71ec0719aa07756f79a2384dc7ef16",
];

0 comments on commit 441e37a

Please sign in to comment.