steps now operate on search states
[scpubgit/DX.git] / lib / DX / Step / InvokeNextPredicate.pm
index 510d013..3e969e9 100644 (file)
@@ -7,7 +7,8 @@ with 'DX::Role::Step';
 has proposition => (is => 'ro', required => 1);
 
 sub apply_to {
-  my ($self, $hyp) = @_;
+  my ($self, $ss) = @_;
+  my $hyp = $ss->current_hypothesis;
   return (undef, $self->proposition->resolve_for($hyp->scope));
 }