arc-sdk-test 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12829,9 +12829,9 @@ var ArcaneSDK = class _ArcaneSDK {
12829
12829
 
12830
12830
  // src/react/useArcaneSdk.ts
12831
12831
  function useArcaneSdk(options) {
12832
- const { rangeApiKey, network } = options;
12832
+ const { rangeApiKey } = options;
12833
12833
  const { connection } = walletAdapterReact.useConnection();
12834
- const wallet = walletAdapterReact.useAnchorWallet();
12834
+ const wallet = walletAdapterReact.useWallet();
12835
12835
  const [sdk, setSdk] = react.useState(null);
12836
12836
  react.useEffect(() => {
12837
12837
  if (!wallet) {
@@ -12842,8 +12842,7 @@ function useArcaneSdk(options) {
12842
12842
  void ArcaneSDK.create({
12843
12843
  rangeApiKey,
12844
12844
  connection,
12845
- wallet,
12846
- network
12845
+ wallet
12847
12846
  }).then((instance) => {
12848
12847
  if (!cancelled) {
12849
12848
  setSdk(instance);
@@ -12852,7 +12851,7 @@ function useArcaneSdk(options) {
12852
12851
  return () => {
12853
12852
  cancelled = true;
12854
12853
  };
12855
- }, [connection, wallet, rangeApiKey, network]);
12854
+ }, [connection, wallet, rangeApiKey]);
12856
12855
  return sdk;
12857
12856
  }
12858
12857
  /**