Skip to content

Commit

Permalink
just use solc
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpolak2 committed Apr 26, 2024
1 parent 181a907 commit c0685d2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 543 deletions.
1 change: 1 addition & 0 deletions packages/core/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ dist-ssr
.env

/build
/test/build
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"typecheck": "tsc --noEmit",
"lint": "pnpm typecheck && biome check .",
"lint:fix": "biome check . --apply",
"test": "vitest run"
"test": "vitest run",
"build": "solcjs --bin ./test/contracts/*.sol -o ./test/build"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@biomejs/biome": "^1.6.1",
"@types/node": "^20.11.30",
"solc-typed-ast": "^18.1.4",
"tsx": "^4.7.1",
"typescript": "^5.4.2",
"vitest": "^1.5.2"
Expand Down
34 changes: 0 additions & 34 deletions packages/core/test/build.ts

This file was deleted.

10 changes: 10 additions & 0 deletions packages/core/test/contracts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import fs from 'node:fs'

function getContract(fileName: string, contractName: string) {
fileName = fileName.replace('.', '_')
return fs.readFileSync(`./test/build/test_contracts_${fileName}_${contractName}.bin`).toString()
}

export const contracts = {
Array: getContract('Array.sol', 'Array'),
}
Loading

0 comments on commit c0685d2

Please sign in to comment.