You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks so much for releasing this extension as it is really helping with development in TEAL.
Having some issues configuring local storage on the tests and particularly when I run the app_opted_in, app_local_get and app_local_put opcode on TEAL which makes me suspect there is a problem with the account configuration.
I'm getting this error message:-
27 - Expected to pop byte[] from stack, instead found bigint. Stack: [ { "type": "bigint", "value": "0", "from": "0" } ]
and the following when I try to comment line 27:-
39 - Expected to pop byte[] from stack, instead found bigint. Stack: [ { "type": "bigint", "value": "0", "from": "0" } ]
and my TEAL contract (simplified for this example):-
#pragma version 6
txn ApplicationID
int 0
==
bnz create_app
b not_create_app
create_app:
not_create_app:
txn OnCompletion
int NoOp
==
bnz handle_noop
err
handle_noop:
// #################################
// ## Check from Local Storage ##
// #################################
int 0
txn ApplicationID
app_opted_in // check if account is opted in
txna ApplicationArgs 0 // command
byte "check_local_storage"
==
bnz handle_check_local_storage
b fail
handle_check_local_storage:
int 0
byte "localarg"
app_local_get
txna ApplicationArgs 1 // value to compare with local storage
==
bnz pass
b fail
pass:
int 1
return
fail:
int 0
return
Any help would be greatly appreciated, thanks!
Julien
The text was updated successfully, but these errors were encountered:
Hi!
First of all, thanks so much for releasing this extension as it is really helping with development in TEAL.
Having some issues configuring local storage on the tests and particularly when I run the
app_opted_in
,app_local_get
andapp_local_put
opcode on TEAL which makes me suspect there is a problem with the account configuration.I'm getting this error message:-
and the following when I try to comment line 27:-
Here is my .teal-debugger configuration:-
and my TEAL contract (simplified for this example):-
Any help would be greatly appreciated, thanks!
Julien
The text was updated successfully, but these errors were encountered: