Class CreateVaultError

Thrown by createUserVault when the vault was minted but a deposit that follows it failed. The vault and every deposit in receipts stay on-chain, so the caller resumes with vaultId through the depositUserVault* methods instead of minting another vault. cause is the deposit's own error.

Hierarchy

  • Error
    • CreateVaultError

Constructors

Properties

Constructors

  • Parameters

    • __namedParameters: {
          vaultId: bigint;
          receipts: unknown[];
          cause: unknown;
      }
      • vaultId: bigint
      • receipts: unknown[]
      • cause: unknown

    Returns CreateVaultError

Properties

vaultId: bigint
receipts: unknown[]