Skip to content

Commit

Permalink
set a default porter uri
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Aug 24, 2023
1 parent 9970cb5 commit 7143d59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -57,7 +58,7 @@ export const encryptLight = async (
export const decrypt = async (
web3Provider: ethers.providers.Web3Provider,
messageKit: TacoMessageKit,
porterUri: string
porterUri = getPorterUri('tapir')
): Promise<Uint8Array> => {
const decrypter = ThresholdDecrypter.create(
porterUri,
Expand Down

1 comment on commit 7143d59

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bundled size for the package is listed below:

build/main/src/characters: 74.22 KB
build/main/src/kits: 19.53 KB
build/main/src/conditions/context: 42.97 KB
build/main/src/conditions/predefined: 19.53 KB
build/main/src/conditions/base: 54.69 KB
build/main/src/conditions: 156.25 KB
build/main/src/agents: 39.06 KB
build/main/src/sdk/strategy: 35.16 KB
build/main/src/sdk: 46.88 KB
build/main/src/policies: 19.53 KB
build/main/src: 449.22 KB
build/main/test: 46.88 KB
build/main/types/ethers-contracts/factories: 82.03 KB
build/main/types/ethers-contracts: 152.34 KB
build/main/types: 156.25 KB
build/main: 707.03 KB
build/module/src/characters: 74.22 KB
build/module/src/kits: 19.53 KB
build/module/src/conditions/context: 42.97 KB
build/module/src/conditions/predefined: 19.53 KB
build/module/src/conditions/base: 54.69 KB
build/module/src/conditions: 156.25 KB
build/module/src/agents: 39.06 KB
build/module/src/sdk/strategy: 31.25 KB
build/module/src/sdk: 42.97 KB
build/module/src/policies: 19.53 KB
build/module/src: 437.50 KB
build/module/test: 42.97 KB
build/module/types/ethers-contracts/factories: 82.03 KB
build/module/types/ethers-contracts: 152.34 KB
build/module/types: 156.25 KB
build/module: 691.41 KB
build: 1.37 MB

Please sign in to comment.