Skip to content

Commit

Permalink
Fix token messanger to return receiver ID (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth committed Aug 25, 2022
1 parent cc00826 commit d68c315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actors/datacap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ where
RT: Runtime<BS>,
{
fn actor_id(&self) -> ActorID {
// The Runtime unhelpfully wraps caller in an ID, while the Messaging trait
// The Runtime unhelpfully wraps receiver in an address, while the Messaging trait
// is closer to the syscall interface.
self.rt.message().caller().id().unwrap()
self.rt.message().receiver().id().unwrap()
}

fn send(
Expand Down

0 comments on commit d68c315

Please sign in to comment.