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 ...@@ -2,7 +2,6 @@ package coin_gas_service
import ( import (
"bwallet/models" "bwallet/models"
"bwallet/pkg/errno"
"bwallet/pkg/gredis" "bwallet/pkg/gredis"
"bwallet/pkg/util" "bwallet/pkg/util"
"encoding/json" "encoding/json"
...@@ -27,13 +26,13 @@ type Data struct { ...@@ -27,13 +26,13 @@ type Data struct {
func GetTransactionGas(name string) (map[string]interface{}, error) { func GetTransactionGas(name string) (map[string]interface{}, error) {
data := make(map[string]interface{}) 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"} //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)) //_, found_fee := util.Contains(items_fee, strings.ToUpper(name))
//
if !found_fee { //if !found_fee {
return nil, errno.ErrCoinNotFound // return nil, errno.ErrCoinNotFound
} //}
var coin_gas *models.CoinGas 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