I'm encountering a problem with the Neo One Framework for Neo Smart Contracts using Typescript. I keep getting this error message "Deploy → Invalid format: Integer too large: 66547 > 65536:-32603". The issue seems to be occurring randomly and there is no specific line number associated with it.
The error is currently happening on this line: this.orderExist()..:
public sendORDERS(orderId : Fixed<8>, actorAddress : Address){
if(this.onlyBy(actorAddress) && this.orderExist(orderId, false)){
// any additional comments
}
}
The called function has the following structure:
@constant
public orderExist (orderId: Fixed<8>, state: boolean){
const currentState = this.getOrderState(orderId);
if(currentState == 0 && state == false)
return true;
else if(currentState != 0 && state == true){
return true;
}
return false;
}
The getOrderState() function looks like this:
@constant
public getOrderState(orderId: number): Fixed<8>{
const state = this.orderState.get(orderId);
return state === undefined ? 0 : state;
}
Any suggestions or insights? I am currently using typescript version 3.6.3 and need it to be compatible with the Neo One Framework.
Thank you in advance.