@goodwidget/ai-credits-widget 0.1.12 → 0.1.14

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.
@@ -964,7 +964,10 @@ var ANTSEED_BUYER_OPERATOR_DOMAIN = {
964
964
  };
965
965
  var WITHDRAW_PRINCIPAL_TYPES = {
966
966
  WithdrawPrincipal: [
967
- { name: "signer", type: "address" },
967
+ // `buyer` is the contract's field name; the value is our signer address.
968
+ // EIP-712 hashes field names, so renaming this to `signer` changes the
969
+ // struct hash and the vault rejects the withdrawal with InvalidSignature().
970
+ { name: "buyer", type: "address" },
968
971
  { name: "amount", type: "uint256" },
969
972
  { name: "recipient", type: "address" },
970
973
  { name: "nonce", type: "uint256" }
@@ -1000,7 +1003,7 @@ async function signWithdrawPrincipal(params) {
1000
1003
  types: WITHDRAW_PRINCIPAL_TYPES,
1001
1004
  primaryType: "WithdrawPrincipal",
1002
1005
  message: {
1003
- signer: params.signer,
1006
+ buyer: params.signer,
1004
1007
  amount: params.amountMicro,
1005
1008
  recipient: params.recipient,
1006
1009
  nonce: params.nonce
@@ -3236,6 +3239,12 @@ import {
3236
3239
  updateToast
3237
3240
  } from "@goodwidget/ui";
3238
3241
 
3242
+ // package.json
3243
+ var version = "0.1.14";
3244
+
3245
+ // src/AiCreditsWidget.tsx
3246
+ import { WidgetVersion } from "@goodwidget/ui";
3247
+
3239
3248
  // src/useAiCreditsHistory.ts
3240
3249
  import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo2, useState as useState2 } from "react";
3241
3250
  var HISTORY_PAGE_SIZE = 10;
@@ -6875,7 +6884,8 @@ function AiCreditsWidget({
6875
6884
  showWalletControls
6876
6885
  }
6877
6886
  ),
6878
- /* @__PURE__ */ jsx19(ToastContainer, {})
6887
+ /* @__PURE__ */ jsx19(ToastContainer, {}),
6888
+ /* @__PURE__ */ jsx19(WidgetVersion, { name: "AI Credits", version })
6879
6889
  ] })
6880
6890
  }
6881
6891
  );
@@ -6912,4 +6922,4 @@ export {
6912
6922
  useAiCreditsAdapter,
6913
6923
  AiCreditsWidget
6914
6924
  };
6915
- //# sourceMappingURL=chunk-HFKD7MN7.js.map
6925
+ //# sourceMappingURL=chunk-5Z3HSQRC.js.map