• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision4dcdf1541b46add6481162c92541b7a2beb9f81e (tree)
Time2020-09-17 14:50:22
AuthorChengcheng Zhang <943420582@qq.c...>
CommiterGitHub

Log Message

add asset info (#546)

* add asset info

* update

* update

Change Summary

Incremental Difference

--- a/wallet/annotated.go
+++ b/wallet/annotated.go
@@ -167,6 +167,8 @@ func (w *Wallet) BuildAnnotatedInput(tx *types.Tx, i uint32) *query.AnnotatedInp
167167 in.ControlProgram = orig.ControlProgram()
168168 in.Address = w.getAddressFromControlProgram(in.ControlProgram, true)
169169 in.SpentOutputID = e.MainchainOutputId
170+ _, assetDefinition := w.getAliasDefinition(in.AssetID)
171+ in.AssetDefinition = &assetDefinition
170172 arguments := orig.Arguments()
171173 for _, arg := range arguments {
172174 in.WitnessArguments = append(in.WitnessArguments, arg)
Show on old repository browser