Fixed CreateApp symbol handling

This commit is contained in:
Hernán Di Pietro 2021-10-07 17:12:45 -03:00
parent 6f96d3e914
commit 7b1da2bda6
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ class PricecasterLib {
* @return {String} transaction id of the created application
*/
this.createApp = async function (sender, validatorAddr, symbol, signCallback) {
if (symbol.length > 16) {
throw new Error('Symbol exceeds 16 characters')
}
symbol = symbol.padEnd(16, ' ')
const localInts = 0
const localBytes = 0
const globalInts = 5