func (w *SCWallet) AddOutput(trans interfaces.ITransaction, address interfaces.IAddress, amount uint64) error { _, adr, err := w.getWalletEntry([]byte(constants.W_RCD_ADDRESS_HASH), address) if err != nil { adr = address } trans.AddOutput(CreateAddress(adr), amount) return nil }