We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96c3d87 commit 4f577daCopy full SHA for 4f577da
1 file changed
validation/info/fields_validators.go
@@ -51,16 +51,11 @@ func ValidateAssetRequiredKeys(a AssetModel) error {
51
}
52
53
func ValidateAssetType(assetType string, chain coin.Coin) error {
54
- chainFromTypeRaw, err := types.GetChainFromAssetType(assetType)
+ chainFromType, err := types.GetChainFromAssetType(assetType)
55
if err != nil {
56
return fmt.Errorf("failed to get chain from asset type: %w", err)
57
58
59
- chainFromType := chainFromTypeRaw
60
- if chainFromTypeRaw.ID == coin.CRONOS {
61
- chainFromType = coin.Cryptoorg()
62
- }
63
-
64
if chainFromType != chain {
65
return fmt.Errorf("%w: asset type field", validation.ErrInvalidField)
66
0 commit comments