Skip to content

Commit

Permalink
Optimize BN
Browse files Browse the repository at this point in the history
  • Loading branch information
s-damian committed Sep 1, 2024
1 parent 0d7c6a2 commit b1ea64d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/frontend/src/handlers/HandleCreateEvent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { web3 } from "@coral-xyz/anchor";
import { web3, BN } from "@coral-xyz/anchor";
import { toast } from "react-toastify";
import { getAnchorProgram } from "../utils/anchorUtils";
import BN from "bn.js";
import { useAnchorWallet } from "@solana/wallet-adapter-react";

export const handleCreateEvent = async (
Expand Down
4 changes: 2 additions & 2 deletions tests/tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AnchorProvider, Program, setProvider, web3, workspace } from "@coral-xyz/anchor";
import { AnchorProvider, Program, setProvider, web3, workspace, BN } from "@coral-xyz/anchor";
import { NftTicketing } from "../target/types/nft_ticketing";
import { assert } from "chai";
import BN from "bn.js";
//import BN from "bn.js";
import { PublicKey } from "@solana/web3.js";
// Imports ajoutés pour le NFT :
import { TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddress } from "@solana/spl-token";
Expand Down

0 comments on commit b1ea64d

Please sign in to comment.