Skip to content

Commit

Permalink
Restore msg.rs (#22)
Browse files Browse the repository at this point in the history
* Restore msg.rs

* Fix clippy warnings
  • Loading branch information
shapeshed authored Apr 25, 2024
1 parent 68f4309 commit 7298015
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
6 changes: 6 additions & 0 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.1.1] - 2014-04-25

### Changed

- Restore msg.rs

## [0.1.0] - 2014-04-25

### Changed
Expand Down
2 changes: 1 addition & 1 deletion 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 @@ -11,8 +11,8 @@ publish = true
readme = "README.md"
repository = "https://github.com/margined-protocol/vaultenator"
resolver = "2"
rust-version = "1.76.0"
version = "0.1.0"
rust-version = "1.77.2"
version = "0.1.1"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod contract;
pub mod errors;
pub mod handlers;
pub mod maths;
// pub mod msg;
pub mod msg;
pub mod ownership;
pub mod query;
pub mod reply;
Expand Down
11 changes: 11 additions & 0 deletions src/msg.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use cosmwasm_std::{Addr, CosmosMsg};

use osmosis_std::types::osmosis::tokenfactory::v1beta1::MsgCreateDenom;

pub fn create_denom_message(contract_address: &Addr, subdenom: String) -> CosmosMsg {
MsgCreateDenom {
sender: contract_address.to_string(),
subdenom,
}
.into()
}

0 comments on commit 7298015

Please sign in to comment.