Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Nov 28, 2023
1 parent d97341e commit add7fc9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
run: forge build --sizes

- name: Check bindings are correct
run: forge bind --bindings-path ./bindings --root ./contracts --crate-name bindings
run: forge bind --bindings-path ./crates/bindings --root ./contracts --crate-name bindings
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ fmt:
@forge fmt --check --root $(CONTRACTS_PATH)
@$(CARGO) fmt

# Target for running tests
test:
@forge test --root $(CONTRACTS_PATH)
@$(CARGO) test

# Target for installing forge dependencies
setup:
@forge install


# Declare phony targets
.PHONY: build build-release clean fmt bindings
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ Solidity build artifacts.

The project is structured as a mixed Rust workspace with a Foundry project under
`contracts/` and typesafe auto-generated bindings to the contracts under
`bindings/`.
`crates/bindings/`.

```
├── Cargo.toml
├── app // <-- Your Rust application logic
├── contracts // <- The smart contracts + tests using Foundry
├── bindings // <-- Generated bindings to the smart contracts' abis (like Typechain)
├── crates
└── bindings // <-- Generated bindings to the smart contracts' abis (like Typechain)
```

## Testing
Expand Down

0 comments on commit add7fc9

Please sign in to comment.