@b3dotfun/sdk 0.1.2-alpha.1 → 0.1.2-alpha.2

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.
@@ -12,7 +12,8 @@ const ModalHeader_1 = __importDefault(require("../../../../global-account/react/
12
12
  const lucide_react_1 = require("lucide-react");
13
13
  const OrderHistoryItem_1 = require("./OrderHistoryItem");
14
14
  function OrderHistory({ mode, onBack, onSelectOrder }) {
15
- const { address } = (0, react_2.useAccountWallet)();
15
+ const { connectedEOAWallet, address: smartWalletAddress } = (0, react_2.useAccountWallet)();
16
+ const address = connectedEOAWallet?.getAccount()?.address || smartWalletAddress;
16
17
  const { orderHistory, isLoadingOrderHistory, refetchOrderHistory } = (0, react_1.useAnyspendOrderHistory)(address);
17
18
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.default, { title: "Order History", showCloseButton: false, handleBack: onBack, className: "w-full", children: (0, jsx_runtime_1.jsx)(react_2.Button, { variant: "ghost", size: "icon", className: "hover:bg-as-surface-secondary", onClick: () => {
18
19
  refetchOrderHistory();
@@ -6,7 +6,8 @@ import ModalHeader from "../../../../global-account/react/components/ModalHeader
6
6
  import { RefreshCcw } from "lucide-react";
7
7
  import { OrderHistoryItem } from "./OrderHistoryItem.js";
8
8
  export function OrderHistory({ mode, onBack, onSelectOrder }) {
9
- const { address } = useAccountWallet();
9
+ const { connectedEOAWallet, address: smartWalletAddress } = useAccountWallet();
10
+ const address = connectedEOAWallet?.getAccount()?.address || smartWalletAddress;
10
11
  const { orderHistory, isLoadingOrderHistory, refetchOrderHistory } = useAnyspendOrderHistory(address);
11
12
  return (_jsxs(_Fragment, { children: [_jsx(ModalHeader, { title: "Order History", showCloseButton: false, handleBack: onBack, className: "w-full", children: _jsx(Button, { variant: "ghost", size: "icon", className: "hover:bg-as-surface-secondary", onClick: () => {
12
13
  refetchOrderHistory();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.1.2-alpha.1",
3
+ "version": "0.1.2-alpha.2",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -13,7 +13,8 @@ interface OrderHistoryProps {
13
13
  }
14
14
 
15
15
  export function OrderHistory({ mode, onBack, onSelectOrder }: OrderHistoryProps) {
16
- const { address } = useAccountWallet();
16
+ const { connectedEOAWallet, address: smartWalletAddress } = useAccountWallet();
17
+ const address = connectedEOAWallet?.getAccount()?.address || smartWalletAddress;
17
18
  const { orderHistory, isLoadingOrderHistory, refetchOrderHistory } = useAnyspendOrderHistory(address);
18
19
 
19
20
  return (