mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
Make the scry in +code work again.
This commit is contained in:
parent
eca03bf6eb
commit
7f79f1e019
@ -1821,7 +1821,7 @@
|
||||
``[%noun !>(pals:(~(um am [now fox]) our))]
|
||||
?. ?=([%life ~] tyl)
|
||||
=+ muc=$(tyl [%life ~])
|
||||
(perm our his ?~(muc 0 (@ud u.muc)) tyl)
|
||||
(perm our his ?~(muc 0 (fall ((soft @ud) u.muc) 0)) tyl)
|
||||
=+ gys=(~(us go ton.fox) our)
|
||||
?~ gys ~
|
||||
?. =(our his)
|
||||
|
@ -4273,8 +4273,8 @@
|
||||
::
|
||||
=/ =beam [[our %home [%da date.build]] /hoon/hoon/sys]
|
||||
::
|
||||
.= (scry [%143 %noun] ~ %cw beam)
|
||||
(scry [%143 %noun] ~ %cw beam(r [%da now]))
|
||||
.= (scry [%141 %noun] ~ %cw beam)
|
||||
(scry [%141 %noun] ~ %cw beam(r [%da now]))
|
||||
== ==
|
||||
::
|
||||
(return-result %success %reef pit)
|
||||
@ -4408,7 +4408,7 @@
|
||||
=/ scry-response
|
||||
?: (~(has by scry-results) scry-request)
|
||||
(~(get by scry-results) scry-request)
|
||||
(scry [%143 %noun] ~ `@tas`(cat 3 [vane care]:resource) beam)
|
||||
(scry [%141 %noun] ~ `@tas`(cat 3 [vane care]:resource) beam)
|
||||
:: scry blocked
|
||||
::
|
||||
?~ scry-response
|
||||
@ -5159,11 +5159,6 @@
|
||||
~/ %intercepted-scry
|
||||
|= [ref=* (unit (set monk)) =term =beam]
|
||||
^- (unit (unit (cask)))
|
||||
?> ?=([@ *] ref)
|
||||
=/ hoon-version=@ud -.ref
|
||||
::
|
||||
~| hoon-version=hoon-version
|
||||
?> ?=(?(%143 %151) hoon-version)
|
||||
:: if the actual scry produces a value, use that value; otherwise use local
|
||||
::
|
||||
=/ scry-response (scry +<.$)
|
||||
|
Loading…
Reference in New Issue
Block a user