OSDN Git Service

feat: add build crosschain input (#91)
[bytom/vapor.git] / api / transact.go
index 350ed85..3f2c0db 100644 (file)
@@ -25,9 +25,10 @@ func (a *API) actionDecoder(action string) (func([]byte) (txbuilder.Action, erro
        decoders := map[string]func([]byte) (txbuilder.Action, error){
                "control_address":              txbuilder.DecodeControlAddressAction,
                "control_program":              txbuilder.DecodeControlProgramAction,
-               "retire":                       txbuilder.DecodeRetireAction,
                "cross_chain_out":              txbuilder.DecodeCrossOutAction,
                "vote_output":                  txbuilder.DecodeVoteOutputAction,
+               "retire":                       txbuilder.DecodeRetireAction,
+               "cross_chain_in":               txbuilder.DecodeCrossInAction,
                "spend_account":                a.wallet.AccountMgr.DecodeSpendAction,
                "spend_account_unspent_output": a.wallet.AccountMgr.DecodeSpendUTXOAction,
                "unvote":                       a.wallet.AccountMgr.DecodeUnvoteAction,