EncodeError encodes error to json
(data interface{})
| 238 | |
| 239 | // EncodeError encodes error to json |
| 240 | func EncodeError(data interface{}) string { |
| 241 | marshaled, err := json.Marshal(data) |
| 242 | if err != nil { |
| 243 | panic(err) |
| 244 | } |
| 245 | return string(marshaled) |
| 246 | } |
| 247 | |
| 248 | func (tx *Transaction) CommissionCoin() types.CoinID { |
| 249 | if tx.Type == TypeSellAllSwapPool || tx.Type == TypeSellAllCoin { |
no test coverage detected