Skip to content

Commit

Permalink
Merge pull request #159 from neutron-org/feat/burn-different
Browse files Browse the repository at this point in the history
feat: allow to burn from different address in wasmbindings #ntrn-372
  • Loading branch information
pr0n00gler authored Aug 27, 2024
2 parents 240ab2c + 3cd80f1 commit a11018a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/neutron-sdk/src/bindings/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,16 @@ impl NeutronMsg {
/// Basic helper to define burn tokens passed to TokenFactory module:
/// * **denom** is a name of the denom;
/// * **amount** is an amount of tokens to burn.
pub fn submit_burn_tokens(denom: impl Into<String>, amount: Uint128) -> Self {
/// * **burn_from_address** is an address tokens will be burned from
pub fn submit_burn_tokens(
denom: impl Into<String>,
amount: Uint128,
burn_from_address: Option<String>,
) -> Self {
NeutronMsg::BurnTokens {
denom: denom.into(),
amount,
burn_from_address: String::new(),
burn_from_address: burn_from_address.unwrap_or_default(),
}
}

Expand Down

0 comments on commit a11018a

Please sign in to comment.