• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision1c1f7724f10b1debbd84a7411c10d294e713e8f8 (tree)
Time2020-09-17 13:55:13
AuthorChengcheng Zhang <943420582@qq.c...>
CommiterChengcheng Zhang

Log Message

add asset info

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