Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schemar committed Dec 21, 2018
1 parent 768a1ba commit 9f34cec
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions contracts/lib/MessageBus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,7 @@ library MessageBus {
"Message on target must be Declared."
);

/*
* The outbox location index is 0 in the MessageBox struct, so it
* is same as _messageBoxOffset.
*/
// The outbox is at location OUTBOX_OFFSET of the MessageBox struct.
bytes memory path = bytes32ToBytes(
storageVariablePathForStruct(
_messageBoxOffset,
Expand Down Expand Up @@ -525,10 +522,7 @@ library MessageBus {
"Message on source must be DeclaredRevocation."
);

/*
* The inbox is at location 1 of the MessageBox struct.
* So add one to get the path.
*/
// The inbox is at location INBOX_OFFSET of the MessageBox struct.
bytes memory path = bytes32ToBytes(
storageVariablePathForStruct(
_messageBoxOffset,
Expand Down

0 comments on commit 9f34cec

Please sign in to comment.