diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e10ce1b7..057fa86e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - uses: ./.github/workflows/setup - name: Run tests - run: pnpm test + run: forge test -vvv - name: Upload signatures run: forge selectors upload --all diff --git a/.gitignore b/.gitignore index 90ebc0bb..8337abed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,5 @@ -.DS_Store -.env -.node* -.vscode -/abi /artifacts /cache -/contracts.json /coverage* /deployments/*/solcInputs/*.json /deployments/localhost diff --git a/.prettierignore b/.prettierignore index 033b2b78..75561ea3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,11 +3,7 @@ cache deployments dist export -generated-src src/types -abi out lib forge-cache -test/foundry/dapp/helper/input -test/foundry/dapp/helper/output diff --git a/README.md b/README.md index 3cf32d20..49f48c72 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If the node is not listening to `http://localhost:8545/`, please set the `RPC_UR If you want to run the tests, please run the following command. ```sh -pnpm test +forge test -vvv ``` ## 📚 Documentation diff --git a/package.json b/package.json index fa59a978..7d6806fc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "preinstall": "npx only-allow pnpm", "prepack": "run-s build tsc:prod copy-dts", "start": "hardhat node", - "test": "forge test -vvv", "tsc": "tsc", "tsc:prod": "tsc -p tsconfig.prod.json" }, diff --git a/test/foundry/dapp/Application.t.sol b/test/foundry/dapp/Application.t.sol index ed18cd93..2dcf9d77 100644 --- a/test/foundry/dapp/Application.t.sol +++ b/test/foundry/dapp/Application.t.sol @@ -421,7 +421,7 @@ contract ApplicationTest is ERC165Test { _tokenIds.push(i); _initialSupplies.push(_initialSupply); _transferAmounts.push( - bound(uint256(keccak256(abi.encode(i))), 1, _initialSupply) + 1 + (uint256(keccak256(abi.encode(i))) % _initialSupply) ); } }