From a42c6c85f24f0b8833c8dc526b55bfdfc6870002 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Tue, 21 May 2019 16:31:53 +0800 Subject: [PATCH] wip --- account/builder.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account/builder.go b/account/builder.go index f5f309f5..2470481b 100644 --- a/account/builder.go +++ b/account/builder.go @@ -76,6 +76,7 @@ func (a *crossInAction) Build(ctx context.Context, b *txbuilder.TemplateBuilder) if err != nil { return asset.ErrSerializing } + // TODO: may need to skip here if !chainjson.IsValidJSON(rawDefinition) { return errors.New("asset definition is not in valid json format") } @@ -92,6 +93,7 @@ func (a *crossInAction) Build(ctx context.Context, b *txbuilder.TemplateBuilder) // TODO: update asset def here? } + // TODO: IssuanceProgram vs arguments? // TODO: save AssetDefinition // txin := types.NewIssuanceInput(nonce[:], a.Amount, asset.IssuanceProgram, nil, asset.RawDefinitionByte) -- 2.11.0