parent
8a6e0e6e4b
commit
040169a196
|
@ -240,6 +240,14 @@ const General = () => {
|
|||
}
|
||||
})
|
||||
|
||||
// check that no price account has more than 32 publishers
|
||||
Object.keys(jsonParsed).forEach((symbol) => {
|
||||
if (jsonParsed[symbol].priceAccounts[0].publishers.length > 32) {
|
||||
toast.error(`A price account can't have more than 32 publishers.`)
|
||||
isValid = false
|
||||
}
|
||||
})
|
||||
|
||||
return isValid
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue