Skip to content

Commit db130b4

Browse files
set a default porter uri
1 parent ecb9e0e commit db130b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/taco.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ethers } from 'ethers';
88
import { ThresholdDecrypter } from './characters/cbd-recipient';
99
import { Condition, ConditionExpression } from './conditions';
1010
import { DkgClient } from './dkg';
11+
import { getPorterUri } from './porter';
1112
import { toBytes } from './utils';
1213

1314
export interface TacoMessageKit {
@@ -57,7 +58,7 @@ export const encryptLight = async (
5758
export const decrypt = async (
5859
web3Provider: ethers.providers.Web3Provider,
5960
messageKit: TacoMessageKit,
60-
porterUri: string
61+
porterUri = getPorterUri('tapir')
6162
): Promise<Uint8Array> => {
6263
const decrypter = ThresholdDecrypter.create(
6364
porterUri,

0 commit comments

Comments
 (0)