Skip to content

Commit

Permalink
Fixing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Mar 24, 2024
1 parent a96c7c7 commit 587ae5e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 1,004 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'yarn' # Caches dependencies to speed up workflows

- name: Install dependencies
run: yarn install # Installs dependencies defined in package.json

- name: Install Devnet
run: cargo install --locked --git https://github.com/0xSpaceShard/starknet-devnet-rs.git --rev ${{ env.DEVNET_SHA }}

- name: Run Devnet in background
run: nohup starknet-devnet --seed 0 & sleep 2


- name: Install dependencies
run: yarn install # Installs dependencies defined in package.json

- name: Run tests
run: yarn test # Runs your test script defined in package.json
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
"author": "amanusk",
"license": "MIT",
"dependencies": {
"@scure/starknet": "^1.0.0",
"@types/commander": "^2.12.2",
"abi-wan-kanabi": "^2.0.0",
"commander": "^8.2.0",
"dotenv": "^10.0.0",
"ethers": "^6.3.0",
"@scure/starknet": "^1.0.0",
"starknet": "^6.5.0"
"starknet": "^6.6.0"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^16.9.2",
"chai": "^4.3.7",
"eslint": "^7.32.0",
Expand Down
39 changes: 0 additions & 39 deletions scripts/deploy-and-fund.ts

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/deploy-prefunded.ts

This file was deleted.

21 changes: 0 additions & 21 deletions scripts/deploy.ts

This file was deleted.

20 changes: 0 additions & 20 deletions scripts/test-block.ts

This file was deleted.

6 changes: 3 additions & 3 deletions test/account.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBN } from "bn.js";

Check failure on line 1 in test/account.test.ts

View workflow job for this annotation

GitHub Actions / run-tests (20.x)

Cannot find module 'bn.js' or its corresponding type declarations.
import chai from "chai";

Check failure on line 2 in test/account.test.ts

View workflow job for this annotation

GitHub Actions / run-tests (20.x)

Could not find a declaration file for module 'chai'. '/home/runner/work/starknet-cli-wallet/starknet-cli-wallet/node_modules/chai/index.js' implicitly has an 'any' type.
import { Account, Contract, constants } from "starknet";
import { Account, Contract, constants, num } from "starknet";
import { getERC20FeeContract, getStarknetWallet, getTestProvider } from "./fixtures";
import { StarkNetWallet } from "../src/StarkNetWallet";

Expand Down Expand Up @@ -45,7 +45,7 @@ describe("deploy and test Wallet", () => {
let newWallet = StarkNetWallet.fromMnemonic(mnemonic, 0, provider, expectedAddress);
await account.transfer(expectedAddress, 1000000000000000000n, DEFAULT_TOKEN_ADDRESS);
await newWallet.deployAccount(ACCOUNT_CLASS_HASH);
let c = await provider.getClassAt(expectedAddress);
expect(c).to.be.equal(ACCOUNT_CLASS_HASH);
let c = await provider.getClassHashAt(expectedAddress);
expect(num.toHex(c)).to.be.equal(ACCOUNT_CLASS_HASH);
}).timeout(100000);
});
Loading

0 comments on commit 587ae5e

Please sign in to comment.