Skip to content

Commit

Permalink
Merge branch 'main' of github.com:srlabs/phink
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-valerio committed Oct 1, 2024
2 parents c54ac5b + 5f39ef5 commit 5127600
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,20 @@ phink fuzz /tmp/ink_fuzzed_Bb9Zp # you can get this path by reading the output o

## Example

#### Creating an invariant
#### Adding some invariants

Below are some invariants created for the [dns](https://github.com/kevin-valerio/phink/blob/main/sample/dns/lib.rs)
contract.

```rust
1. Add the `phink` feature to your `Cargo.toml`
```toml
[features]
...
phink = []
```

2. Create your invariants as below:
```rust
#[cfg(feature = "phink")]
#[ink(impl)]
impl DomainNameService {
Expand Down

0 comments on commit 5127600

Please sign in to comment.