Skip to content

Commit

Permalink
Add change and example to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
maximopalopoli committed Feb 17, 2025
1 parent 548a863 commit 3a92ae4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,17 @@ Each version will have a separate `Breaking Changes` section as well. To describ
### Added
### Changed
### Breaking changes
* refactor: add custom error struct in elcontracts writer methods by @maximopalopoli in <https://github.com/Layr-Labs/eigensdk-go/pull/482>
* The errors now follow this format: `error name (error code) - error description: underlying error`.

For example, in this code section:
```go
receipt, err := w.txMgr.Send(ctx, tx, waitForReceipt)
if err != nil {
wrappedError := SendError(err)
return nil, wrappedError
}
```
The returned error if err is not nil would be `Send error (5) - Failed to send tx with err *underlying error*`

### Removed

0 comments on commit 3a92ae4

Please sign in to comment.