Skip to content

Commit 4f577da

Browse files
authored
fix (#109)
1 parent 96c3d87 commit 4f577da

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

validation/info/fields_validators.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,11 @@ func ValidateAssetRequiredKeys(a AssetModel) error {
5151
}
5252

5353
func ValidateAssetType(assetType string, chain coin.Coin) error {
54-
chainFromTypeRaw, err := types.GetChainFromAssetType(assetType)
54+
chainFromType, err := types.GetChainFromAssetType(assetType)
5555
if err != nil {
5656
return fmt.Errorf("failed to get chain from asset type: %w", err)
5757
}
5858

59-
chainFromType := chainFromTypeRaw
60-
if chainFromTypeRaw.ID == coin.CRONOS {
61-
chainFromType = coin.Cryptoorg()
62-
}
63-
6459
if chainFromType != chain {
6560
return fmt.Errorf("%w: asset type field", validation.ErrInvalidField)
6661
}

0 commit comments

Comments
 (0)