From 7143d5972a277acfd27ced33ef8fb159e23379ba Mon Sep 17 00:00:00 2001
From: Piotr Roslaniec
Date: Thu, 24 Aug 2023 13:30:31 +0200
Subject: [PATCH] set a default porter uri
---
src/taco.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/taco.ts b/src/taco.ts
index f378477a3..434a587e7 100644
--- a/src/taco.ts
+++ b/src/taco.ts
@@ -8,6 +8,7 @@ import { ethers } from 'ethers';
import { ThresholdDecrypter } from './characters/cbd-recipient';
import { Condition, ConditionExpression } from './conditions';
import { DkgClient } from './dkg';
+import { getPorterUri } from './porter';
import { toBytes } from './utils';
export interface TacoMessageKit {
@@ -57,7 +58,7 @@ export const encryptLight = async (
export const decrypt = async (
web3Provider: ethers.providers.Web3Provider,
messageKit: TacoMessageKit,
- porterUri: string
+ porterUri = getPorterUri('tapir')
): Promise => {
const decrypter = ThresholdDecrypter.create(
porterUri,