@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;
@@ -1786,7 +1786,7 @@ var require_buffer = __commonJS({
1786
1786
  function numberIsNaN(obj) {
1787
1787
  return obj !== obj;
1788
1788
  }
1789
- var hexSliceLookupTable = function() {
1789
+ var hexSliceLookupTable = (function() {
1790
1790
  const alphabet = "0123456789abcdef";
1791
1791
  const table = new Array(256);
1792
1792
  for (let i = 0; i < 16; ++i) {
@@ -1796,7 +1796,7 @@ var require_buffer = __commonJS({
1796
1796
  }
1797
1797
  }
1798
1798
  return table;
1799
- }();
1799
+ })();
1800
1800
  function defineBigIntMethod(fn) {
1801
1801
  return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1802
1802
  }
@@ -1931,6 +1931,9 @@ var CredenzaSuiSigner = class extends import_cryptography.Signer {
1931
1931
  throw new Error(`Cannot sign: ${json.message}`);
1932
1932
  }
1933
1933
  const parsed = (0, import_cryptography.parseSerializedSignature)(json.signature);
1934
+ if (!parsed.signature) {
1935
+ throw new Error("Cannot parse signature");
1936
+ }
1934
1937
  return parsed.signature;
1935
1938
  }
1936
1939
  async signTransaction(bytes) {