MCPcopy Create free account
hub / github.com/MinterTeam/minter-go-node / EncodeError

Function EncodeError

coreV2/transaction/executor.go:240–246  ·  view source on GitHub ↗

EncodeError encodes error to json

(data interface{})

Source from the content-addressed store, hash-verified

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

Callers 15

EstimateCoinBuyMethod · 0.92
calcBuyFromPoolMethod · 0.92
calcBuyFromBancorMethod · 0.92
EstimateTxCommissionMethod · 0.92
EstimateCoinSellAllMethod · 0.92
calcSellAllFromBancorMethod · 0.92
CoinInfoMethod · 0.92
CoinInfoByIdMethod · 0.92
FrozenMethod · 0.92
FrozenAllMethod · 0.92
EstimateCoinSellMethod · 0.92
commissionInCoinMethod · 0.92

Calls 1

MarshalMethod · 0.45

Tested by

no test coverage detected