mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
naive: add another case to spawn proxy test
This commit is contained in:
parent
e834033daa
commit
37ca59e96d
@ -2364,18 +2364,32 @@
|
||||
spawn-proxy.own:(~(got by points.state) ~sambud)
|
||||
::
|
||||
++ test-l2-sambud-spawn-proxy-predeposit-spawn ^- tang
|
||||
=/ l2-sproxy [[~sambud %spawn] %set-spawn-proxy (addr %sambud-skey-1)]
|
||||
=/ lf-spawn [[~sambud %spawn] %spawn ~lisdur-fodrys (addr %lf-key-0)]
|
||||
%+ expect-eq
|
||||
!> [`@ux`(addr %lf-key-0) 0]
|
||||
::
|
||||
!>
|
||||
=| =^state:naive
|
||||
=^ f state (init-sambud state)
|
||||
=^ f state (n state (changed-spawn-proxy:l1 ~sambud (addr %sambud-skey)))
|
||||
=^ f state (n state (changed-spawn-proxy:l1 ~sambud deposit-address:naive))
|
||||
=^ f state (n state %bat q:(gen-tx 0 lf-spawn %sambud-skey))
|
||||
transfer-proxy.own:(~(got by points.state) ~lisdur-fodrys)
|
||||
::
|
||||
;: weld
|
||||
%+ expect-eq
|
||||
!> [`@ux`(addr %lf-key-0) 0]
|
||||
::
|
||||
!>
|
||||
=| =^state:naive
|
||||
=^ f state (init-sambud state)
|
||||
=^ f state (n state (changed-spawn-proxy:l1 ~sambud (addr %sambud-skey-0)))
|
||||
=^ f state (n state (changed-spawn-proxy:l1 ~sambud deposit-address:naive))
|
||||
=^ f state (n state %bat q:(gen-tx 0 lf-spawn %sambud-skey-0))
|
||||
transfer-proxy.own:(~(got by points.state) ~lisdur-fodrys)
|
||||
::
|
||||
%+ expect-eq
|
||||
!> [`@ux`(addr %lf-key-0) 0]
|
||||
::
|
||||
!>
|
||||
=| =^state:naive
|
||||
=^ f state (init-sambud state)
|
||||
=^ f state (n state (changed-spawn-proxy:l1 ~sambud (addr %sambud-skey-0)))
|
||||
=^ f state (n state (changed-spawn-proxy:l1 ~sambud deposit-address:naive))
|
||||
=^ f state (n state %bat q:(gen-tx 0 l2-sproxy %sambud-skey-0))
|
||||
=^ f state (n state %bat q:(gen-tx 1 lf-spawn %sambud-skey-1))
|
||||
transfer-proxy.own:(~(got by points.state) ~lisdur-fodrys)
|
||||
==
|
||||
++ test-linnup-torsyx-spawn ^- tang
|
||||
:: try to spawn a L2 planet with a L2 planet
|
||||
:: this test is deprecated, covered by +test-rut
|
||||
|
Loading…
Reference in New Issue
Block a user