Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 6, 2024
1 parent 7a44446 commit 39ea712
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 1,379 deletions.
17 changes: 10 additions & 7 deletions packages/client/src/solanaDeposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ import { ethers } from "ethers";

const SEED = "meta";

export const solanaDeposit = async (args: {
amount: number;
api: string;
recipient: string;
idPath: string;
params: any[];
}) => {
export const solanaDeposit = async function (

Check warning on line 9 in packages/client/src/solanaDeposit.ts

View workflow job for this annotation

GitHub Actions / build

Prefer using arrow functions over plain functions
this: ZetaChainClient,
args: {
amount: number;
api: string;
recipient: string;
idPath: string;

Check failure on line 15 in packages/client/src/solanaDeposit.ts

View workflow job for this annotation

GitHub Actions / build

Expected interface keys to be in ascending order. 'idPath' should be before 'recipient'
params: any[];
}
) {
const keypair = await getKeypairFromFile(args.idPath);
const wallet = new anchor.Wallet(keypair);

Expand Down
9 changes: 1 addition & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@
"outDir": "./dist",
"skipLibCheck": true,
"sourceMap": false,
"strict": true,
"typeRoots": [
"@types",
"./node_modules/@types",
"./packages/tasks/src",
"./packages/client/src",
"./packages/test/src"
]
"strict": true
},
"files": ["./hardhat.config.ts"],
"include": ["packages/client", "packages/tasks", "packages/test"],
Expand Down
Loading

0 comments on commit 39ea712

Please sign in to comment.