Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Aug 16, 2024
1 parent db26e06 commit 21d49a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Support only a transparent address as a refund target of IBC shielding
transfer ([\#3620](https://github.com/anoma/namada/issues/3620))
16 changes: 10 additions & 6 deletions crates/ibc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,16 @@ where
.map_err(|e| Error::Context(Box::new(e)))?;
// Extract MASP tx from the memo in the packet if needed
let masp_tx = match &*envelope {
MsgEnvelope::Packet(PacketMsg::Recv(msg)) => {
if self.is_receiving_success(msg)? {
extract_masp_tx_from_packet(&msg.packet)
} else {
None
}
MsgEnvelope::Packet(PacketMsg::Recv(msg))
if self.is_receiving_success(msg)? =>
{
extract_masp_tx_from_packet(&msg.packet)
}
MsgEnvelope::Packet(PacketMsg::Ack(msg)) => {
// TODO: This is unneeded but wasm compilation error
// happened if deleted on MacOS with Apple Silicon
let _ = extract_masp_tx_from_packet(&msg.packet);
None
}
_ => None,
};
Expand Down

0 comments on commit 21d49a5

Please sign in to comment.