Merge pull request #186 from tloncorp/ns/update-set-ship-url

Update reel set-ship URL
This commit is contained in:
midsum-salrux 2023-05-25 13:18:03 -04:00 committed by GitHub
commit 44d23f73ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,11 @@
^- form:m
=+ !<(vic=cord arg)
;< our=@p bind:m get-our
;< =json bind:m (fetch-json "{(trip vic)}bait/who")
=/ url
?: =(vic 'https://tlon.network/lure/')
"https://tlon.network/v1/lure/bait/who"
"{(trip vic)}/bait/who"
;< =json bind:m (fetch-json url)
=/ =ship (slav %p (so:dejs:format json))
;< ~ bind:m (poke [our %reel] reel-command+!>([%set-ship ship]))
(pure:m !>(~))