Skip to content

Commit

Permalink
fixed code
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Dec 12, 2023
1 parent bf1b935 commit 938beba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ go get github.com/project-blanc/go-huffc

```go
// Compile a contract with default compiler settings
c := huffc.New(nil)
contract, err := c.Compile("contract.huff")
c := huffc.New()
contract, err := c.Compile("contract.huff", nil)

// Compile a contract with custom compiler settings
c := huffc.New(&huff.Options{
c := huffc.New()
contract, err := c.Compile("contract.huff", &huffc.Options{
EVMVersion: huffc.EVMVersionIstanbul,
})
contract, err := c.Compile("contract.huff")
```

> [!WARNING]
> This package is pre-1.0. There might be breaking changes between minor versions.

0 comments on commit 938beba

Please sign in to comment.