Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
fix(messaging): fix destination for Transfer messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoga07 committed Dec 17, 2020
1 parent c077d31 commit 7273ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/messaging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ impl MsgEnvelope {
}
// From `Payment` to `Metadata`.
Some(Duty::Elder(ElderDuties::Payment))
| Some(Duty::Elder(ElderDuties::Transfer))
| Some(Duty::Elder(ElderDuties::Metadata)) => {
Ok(Section(cmd.dst_address()))
}
Expand All @@ -157,6 +158,7 @@ impl MsgEnvelope {
// I.e. this means we accumulated a section signature from `Payment` Elders.
// (this is done at `Metadata` Elders, and the accumulated section is added to most recent sender)
Some(Duty::Elder(ElderDuties::Payment))
| Some(Duty::Elder(ElderDuties::Transfer))
| Some(Duty::Elder(ElderDuties::Metadata)) => {
Ok(Section(cmd.dst_address()))
}
Expand Down

0 comments on commit 7273ec3

Please sign in to comment.