algo-builder icon indicating copy to clipboard operation
algo-builder copied to clipboard

RUNTIME_ERR1003: Type of data is incorrect. Expected unsigned integer (upto 64 bit) but got 0

Open darmawan01 opened this issue 2 years ago • 5 comments

Describe the bug

Getting error when trying to deploy the Smart Contract.

RuntimeError: RUNTIME_ERR1003: Type of data is incorrect. Expected unsigned integer (upto 64 bit) but got 0 at line 1156

the line mentioned in error 1156 just initialize int 0, there is no action

{
 errorDescriptor: {
    number: 1003,
    message: 'Type of data is incorrect. Expected %expected% but got %actual% at line %line%',
    title: 'Invalid type at line %line%',
    description: 'Error encountered while executing teal code. Type of data is\n' +
      'incorrect. Expected %expected% but got %actual% at line %line%'
  },
  number: 1003,
  args: {
    expected: 'unsigned integer (upto 64 bit)',
    actual: '0\t\t\t\t',
    line: 1156
  },
  _isRuntimeError: true
}

Environment

  • OS: Mac OS
  • Node.js version: v16.13.1
  • algob version: "@algo-builder/algob": "^5.0.1",

Maybe anyone has the same problem, or can help to solve this, thanks

darmawan01 avatar Aug 01 '22 08:08 darmawan01

Hi @darmawan01! Could you provide more details about smart contract?

vuvoth avatar Aug 01 '22 08:08 vuvoth

you mean the line that error mentioned ?

image

darmawan01 avatar Aug 01 '22 09:08 darmawan01

you mean the line that error mentioned?

Maybe I need full contract to debug. Could I have it?

vuvoth avatar Aug 01 '22 09:08 vuvoth

@darmawan01 - could you share with us the TEAL code (or usable part of it)?

robert-zaremba avatar Sep 19 '22 07:09 robert-zaremba

This is probably fixed in https://github.com/scale-it/algo-builder/pull/775

robert-zaremba avatar Sep 19 '22 07:09 robert-zaremba

@darmawan01 Hi, Could you update us what's the current status on it?

sczembor avatar Oct 07 '22 09:10 sczembor

@darmawan01 could you check the develop version and see if you still have this error?

robert-zaremba avatar Oct 28 '22 07:10 robert-zaremba