From a5ca4483814ec2dc639cfc5ba1f52dcae040960d Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 2 Aug 2024 03:09:26 +0400 Subject: [PATCH] feat: add burn_from_address arg to submit_burn_tokens method --- packages/neutron-sdk/src/bindings/msg.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/neutron-sdk/src/bindings/msg.rs b/packages/neutron-sdk/src/bindings/msg.rs index 5b8daf9c..0a11eded 100644 --- a/packages/neutron-sdk/src/bindings/msg.rs +++ b/packages/neutron-sdk/src/bindings/msg.rs @@ -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, amount: Uint128) -> Self { + /// * **burn_from_address** is an address tokens will be burned from + pub fn submit_burn_tokens( + denom: impl Into, + amount: Uint128, + burn_from_address: Option, + ) -> Self { NeutronMsg::BurnTokens { denom: denom.into(), amount, - burn_from_address: String::new(), + burn_from_address: burn_from_address.unwrap_or_default(), } }