Skip to content

Commit

Permalink
fix(bindings): SetFlatFee.contract_address is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
aelesbao committed Oct 14, 2023
1 parent 80ab844 commit ee5336c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bindings/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
contract_address: String,
flat_fee_amount: Coin,
},
/// Withdraws rewards from the contract. This action should be executed from a contract only if
Expand Down Expand Up @@ -136,7 +136,7 @@ impl ArchwayMsg {
/// * `amount` - The flat fee amount.
pub fn set_flat_fee(contract_address: impl Into<String>, amount: Coin) -> Self {
ArchwayMsg::SetFlatFee {
contract_address: Some(contract_address.into()),
contract_address: contract_address.into(),
flat_fee_amount: amount,
}
}
Expand Down

0 comments on commit ee5336c

Please sign in to comment.