From 7ab93f1c99828b16215d6bb3aadc39c6fe14d021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Sun, 15 Oct 2023 01:13:08 +0200 Subject: [PATCH] fix(bindings): `SetFlatFee.contract_address` is mandatory --- packages/bindings/src/msg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bindings/src/msg.rs b/packages/bindings/src/msg.rs index b1aa6cc..b62fba7 100644 --- a/packages/bindings/src/msg.rs +++ b/packages/bindings/src/msg.rs @@ -35,7 +35,7 @@ pub enum ArchwayMsg { /// it's set as the `owner_address` in the metadata of `contract_address`. The tx will fail if /// the `contract_address` has no metadata. SetFlatFee { - contract_address: Option, + contract_address: String, flat_fee_amount: Coin, }, /// Withdraws rewards from the contract. This action should be executed from a contract only if @@ -136,7 +136,7 @@ impl ArchwayMsg { /// * `amount` - The flat fee amount. pub fn set_flat_fee(contract_address: impl Into, amount: Coin) -> Self { ArchwayMsg::SetFlatFee { - contract_address: Some(contract_address.into()), + contract_address: contract_address.into(), flat_fee_amount: amount, } }