Commit 5525e0a1 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into develop

parents 3ecdce0d 4cc65f71
......@@ -2,7 +2,6 @@ package coin_gas_service
import (
"bwallet/models"
"bwallet/pkg/errno"
"bwallet/pkg/gredis"
"bwallet/pkg/util"
"encoding/json"
......@@ -27,13 +26,13 @@ type Data struct {
func GetTransactionGas(name string) (map[string]interface{}, error) {
data := make(map[string]interface{})
items_fee := []string{"BTC", "BCH", "LTC", "ZEC", "ZCASH", "DCR", "NEO", "TRX", "ATOM", "BTY", "ETC", "ETH", "HT", "ETHTOKEN", "BNB", "DOGE", "YCC"}
_, found_fee := util.Contains(items_fee, strings.ToUpper(name))
if !found_fee {
return nil, errno.ErrCoinNotFound
}
//items_fee := []string{"BTC", "BCH", "LTC", "ZEC", "ZCASH", "DCR", "NEO", "TRX", "ATOM", "BTY", "ETC", "ETH", "HT", "ETHTOKEN", "BNB", "DOGE", "YCC"}
//
//_, found_fee := util.Contains(items_fee, strings.ToUpper(name))
//
//if !found_fee {
// return nil, errno.ErrCoinNotFound
//}
var coin_gas *models.CoinGas
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment