OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e59dd5
)
add asset info (#546)
author
Chengcheng Zhang
<943420582@qq.com>
Thu, 17 Sep 2020 05:50:22 +0000
(13:50 +0800)
committer
GitHub
<noreply@github.com>
Thu, 17 Sep 2020 05:50:22 +0000
(13:50 +0800)
* add asset info
* update
* update
wallet/annotated.go
patch
|
blob
|
history
diff --git
a/wallet/annotated.go
b/wallet/annotated.go
index
39d475f
..
116be49
100644
(file)
--- a/
wallet/annotated.go
+++ b/
wallet/annotated.go
@@
-167,6
+167,8
@@
func (w *Wallet) BuildAnnotatedInput(tx *types.Tx, i uint32) *query.AnnotatedInp
in.ControlProgram = orig.ControlProgram()
in.Address = w.getAddressFromControlProgram(in.ControlProgram, true)
in.SpentOutputID = e.MainchainOutputId
+ _, assetDefinition := w.getAliasDefinition(in.AssetID)
+ in.AssetDefinition = &assetDefinition
arguments := orig.Arguments()
for _, arg := range arguments {
in.WitnessArguments = append(in.WitnessArguments, arg)