@credenza3/contracts-lib-sui 0.1.12 → 0.1.13

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,7 @@ export declare class CredenzaSuiSigner extends Signer {
12
12
  initialize(): Promise<void>;
13
13
  useSponsoredTransactions(value: boolean): void;
14
14
  getGasOwner(): string;
15
- sign(bytes: Uint8Array): Promise<Uint8Array>;
15
+ sign(bytes: Uint8Array): ReturnType<Signer['sign']>;
16
16
  signTransaction(bytes: Uint8Array): ReturnType<Signer['signTransaction']>;
17
17
  getKeyScheme(): SignatureScheme;
18
18
  getPublicKey(): PublicKey;
@@ -1781,7 +1781,7 @@ var require_buffer = __commonJS({
1781
1781
  function numberIsNaN(obj) {
1782
1782
  return obj !== obj;
1783
1783
  }
1784
- var hexSliceLookupTable = function() {
1784
+ var hexSliceLookupTable = (function() {
1785
1785
  const alphabet = "0123456789abcdef";
1786
1786
  const table = new Array(256);
1787
1787
  for (let i = 0; i < 16; ++i) {
@@ -1791,7 +1791,7 @@ var require_buffer = __commonJS({
1791
1791
  }
1792
1792
  }
1793
1793
  return table;
1794
- }();
1794
+ })();
1795
1795
  function defineBigIntMethod(fn) {
1796
1796
  return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1797
1797
  }
@@ -1918,6 +1918,9 @@ var CredenzaSuiSigner = class extends Signer {
1918
1918
  throw new Error(`Cannot sign: ${json.message}`);
1919
1919
  }
1920
1920
  const parsed = parseSerializedSignature(json.signature);
1921
+ if (!parsed.signature) {
1922
+ throw new Error("Cannot parse signature");
1923
+ }
1921
1924
  return parsed.signature;
1922
1925
  }
1923
1926
  async signTransaction(bytes) {