Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Dec 12, 2024
1 parent fbb7007 commit a73d6b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/trading-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "pnpm -w run build-all",
"cli": "pnpm build && tsx src/index.ts",
"cli": "tsx src/index.ts",
"clean": "rimraf ./dist ./.cache",
"typecheck": "tsc --noEmit"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { toReadableAmount } from "./utils";

// For demonstration purposes, create a globally accessible TurnkeyClient
const turnkeyClient = new TurnkeySDKServer({
apiBaseUrl: "https://api.turnkey.com",
apiBaseUrl: process.env.BASE_URL!,
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/requests/createPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function createPolicy(
condition: string
): Promise<string> {
try {
const { policyId } = await turnkeyClient.apiClient().createPolicy({
const { policyId } = await turnkeyClient.createPolicy({
policyName,
condition,
consensus,
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/requests/createPrivateKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function createPrivateKey(
console.log("creating a new Ethereum private key on Turnkey...\n");

try {
const { privateKeys } = await turnkeyClient.apiClient().createPrivateKeys({
const { privateKeys } = await turnkeyClient.createPrivateKeys({
privateKeys: [
{
privateKeyName,
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/requests/createUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function createUser(
publicKey: string
): Promise<string> {
try {
const { userIds } = await turnkeyClient.apiClient().createApiOnlyUsers({
const { userIds } = await turnkeyClient.createApiOnlyUsers({
apiOnlyUsers: [
{
userName,
Expand Down

0 comments on commit a73d6b0

Please sign in to comment.