This forum is a read-only archive. Posting, replying and signing in are disabled.

0d4efa38-d8af-445a-a45a-4b886bdcc68e.teal: logicsig program size too large: 147 > 0

taranchik

Trying to compile TEAL code, but have got an error. What is wrong?

0d4efa38-d8af-445a-a45a-4b886bdcc68e.teal: logicsig program size too large: 147 > 0

I was trying to compile it with the command below

goal clerk compile 0d4efa38-d8af-445a-a45a-4b886bdcc68e.teal

Code of the teal file

txn TypeEnum
int 1
==
txn Fee
int 1000
<
&&
txn CloseRemainderTo
global ZeroAddress
==
txn Receiver
addr ZZAF5ARA4MEC5PVDOP64JM5O5MQST63Q2KOY2FLYFLXXD3PFSNJJBYAFZM
==
&&
txn Amount
int 2000
==
&&
txn FirstValid
int 1000
%
int 0
==
&&
txn LastValid
int 1000
txn FirstValid
+
==
&&
txn Lease
byte base64 y9OJ5MRLCHQj8GqbikAUKMBI7hom+SOj8dlopNdNHXI=
==
&&
txn CloseRemainderTo
addr ZZAF5ARA4MEC5PVDOP64JM5O5MQST63Q2KOY2FLYFLXXD3PFSNJJBYAFZM
==
txn Receiver
global ZeroAddress
==
&&
txn FirstValid
int 30000
>
&&
txn Amount
int 0
==
&&
||
&&
edited
fabrice

I ran goal clerk compile aa.teal even without adding the pragma version and even without setting up $ALGORAND_DATA (that is without a node running).

$ goal clerk compile aa.teal
aa.teal: TA2TIU273VQJGAGINZBQ7GXEOYGUBZTUIDQXBMUVSMT34XETVQS7RKBA7M

Can you check your version of goal:

algod -v
goal version -v

and let’s check

goal node status

to be sure, but I don’t believe it should affect anything.

Can you also give your OS as well as the way you installed the Algorand software (update script / Debian package / …)?

fabrice

Can you try:

  1. To unset ALGORAND_DATA and run the goal clerk compile command again:
unset ALGORAND_DATA
goal clerk compile ...teal
  1. Can you try to catchup? Your node is not caught up. If you used the default configuration, you can use fast catchup to make the process faster: Install a node - Algorand Developer Portal