Skip to content

Commit

Permalink
fmt and proper skip serde for memo
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Jul 3, 2023
1 parent 36a6eeb commit 0ec1400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/ibc-reflect-send/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn handle_send_funds(
to_address: remote_addr,
amount,
timeout: env.block.time.plus_seconds(PACKET_LIFETIME).into(),
memo : None,
memo: None,
};

let res = Response::new()
Expand Down
1 change: 1 addition & 0 deletions packages/std/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub enum IbcMsg {
/// when packet times out, measured on remote chain
timeout: IbcTimeout,
/// optional, usually JSON
#[serde(skip_serializing_if = "Option::is_none")]
memo: Option<Binary>,
},
/// Sends an IBC packet with given data over the existing channel.
Expand Down

0 comments on commit 0ec1400

Please sign in to comment.