Skip to content

Commit

Permalink
Plasma Dequeue: task update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Nolan committed Apr 17, 2019
1 parent 5837f34 commit a95509d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/Plasma MVP/JavaScript/Dequeue/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ We're going to create two functions that will allow us to see the front item on
Create two public functions:

1. a `dequeue` function which removes one item from the queue.
2. a `peek` function which shows the item that will be removed from the queue on the next `dequeue`. Throw if there is no such item.
2. a `peek` function which shows the item that will be removed from the queue on the next `dequeue`. This function should return two `uint` values: exit date and UTXO position (in that order). Throw an exception if there is no item on the front of the queue.

> Remember that a Queue is a [FIFO Stucture](?tab=details).

0 comments on commit a95509d

Please sign in to comment.