mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
naive: add parse raw tx in aggregator submit action
This commit is contained in:
parent
766e2ab610
commit
001d58e539
@ -276,7 +276,13 @@
|
|||||||
|= =part-tx
|
|= =part-tx
|
||||||
^- [octs tx:naive]
|
^- [octs tx:naive]
|
||||||
?+ -.part-tx !!
|
?+ -.part-tx !!
|
||||||
:: %raw [+.part-tx (decode-tx:naive +.part-tx)]
|
%raw
|
||||||
|
?~ batch=(parse-raw-tx:naive q.raw.part-tx)
|
||||||
|
~& %parse-failed
|
||||||
|
:: TODO: maybe return a unit if parsing fails?
|
||||||
|
::
|
||||||
|
!!
|
||||||
|
[raw tx]:-.u.batch
|
||||||
:: %don [(encode-tx:naive +.part-tx) +.part-tx]
|
:: %don [(encode-tx:naive +.part-tx) +.part-tx]
|
||||||
%ful +.part-tx
|
%ful +.part-tx
|
||||||
==
|
==
|
||||||
|
Loading…
Reference in New Issue
Block a user