Asset package update (#581)

* Rewrite new function and deploy where we can minimise the chance of setting an asset type that is different to supported list - sets validation to exact supported list

* change wording
This commit is contained in:
Ryan O'Hara-Reid
2020-10-19 13:59:50 +11:00
committed by GitHub
parent 9945216cac
commit 4ccb495baf
8 changed files with 153 additions and 101 deletions

View File

@@ -23,5 +23,6 @@ func validExchange(exch string) bool {
}
func validAsset(i string) bool {
return asset.IsValid(asset.Item(i))
_, err := asset.New(i)
return err == nil
}