Skip to content

Commit

Permalink
Add overflow error (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
shapeshed authored Apr 29, 2024
1 parent 7298015 commit 73e60ea
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 33 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ 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.2.0] - 2014-04-29

### Added

- Added Overflow error type

### Fixed

- Fix yanked cw-vault-standard crate version

## [0.1.1] - 2014-04-25

### Changed
Expand Down
60 changes: 30 additions & 30 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions 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.77.2"
version = "0.1.1"
version = "0.2.0"

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -27,7 +27,7 @@ cosmwasm-std = "1.5.3"
cw-controllers = "1.1.2"
cw-storage-plus = "1.2.0"
cw-utils = "1.0.3"
cw-vault-standard = "0.4.0"
cw-vault-standard = "0.3.3"
cw2 = "1.1.2"
osmosis-std = "0.24.0"
serde = "1.0.197"
Expand Down
5 changes: 4 additions & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cosmwasm_std::StdError;
use cosmwasm_std::{OverflowError, StdError};
use cw_controllers::AdminError;
use thiserror::Error;

Expand Down Expand Up @@ -43,6 +43,9 @@ pub enum ContractError {
#[error("Owner not set")]
NoOwner {},

#[error("Overflow occurred: {0}")]
Overflow(OverflowError),

#[error("Cannot perform action as contract is paused")]
Paused {},

Expand Down

0 comments on commit 73e60ea

Please sign in to comment.