Skip to content

Commit

Permalink
Add NotOpen error message (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
shapeshed authored Apr 15, 2024
1 parent 1a11388 commit ea88f3d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
19 changes: 13 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.8] - 2014-04-15

### Changed

- Add missing NotOpen error message

## [0.0.7] - 2014-04-15

### Changed
Expand Down Expand Up @@ -53,9 +59,10 @@ and this project adheres to
- Initial release

[0.0.1]: https://github.com/margined-protocol/vaultenator/releases/tag/0.0.1
[0.0.2]: https://github.com/margined-protocol/vaultenator/v0.0.1...v0.0.2
[0.0.3]: https://github.com/margined-protocol/vaultenator/v0.0.2...v0.0.3
[0.0.4]: https://github.com/margined-protocol/vaultenator/v0.0.3...v0.0.4
[0.0.5]: https://github.com/margined-protocol/vaultenator/v0.0.4...v0.0.5
[0.0.6]: https://github.com/margined-protocol/vaultenator/v0.0.5...v0.0.6
[0.0.7]: https://github.com/margined-protocol/vaultenator/v0.0.6...v0.0.7
[0.0.2]: https://github.com/margined-protocol/vaultenator/0.0.1...0.0.2
[0.0.3]: https://github.com/margined-protocol/vaultenator/0.0.2...0.0.3
[0.0.4]: https://github.com/margined-protocol/vaultenator/0.0.3...0.0.4
[0.0.5]: https://github.com/margined-protocol/vaultenator/0.0.4...0.0.5
[0.0.6]: https://github.com/margined-protocol/vaultenator/0.0.5...0.0.6
[0.0.7]: https://github.com/margined-protocol/vaultenator/0.0.6...0.0.7
[0.0.7]: https://github.com/margined-protocol/vaultenator/0.0.7...0.0.8
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme = "README.md"
repository = "https://github.com/margined-protocol/vaultenator"
resolver = "2"
rust-version = "1.76.0"
version = "0.0.7"
version = "0.0.8"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
3 changes: 3 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ pub enum ContractError {
#[error("Contract is not paused")]
NotPaused {},

#[error("Cannot perform action as contract is not open")]
NotOpen {},

#[error("Owner not set")]
NoOwner {},

Expand Down

0 comments on commit ea88f3d

Please sign in to comment.