Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feat/optimize static tuples" #142

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 33 additions & 5 deletions examples/arc72/artifacts/ARC72.approval.teal
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ arc72_ownerOf:
frame_dig -1 // tokenId: uint256
box_get
assert
extract 0 32
store 0 // full array
int 0 // initial offset
int 0 // headOffset
+
load 0 // full array
swap
int 32
extract3
byte 0x151f7c75
swap
concat
Expand Down Expand Up @@ -83,7 +90,12 @@ arc72_tokenURI:
frame_dig -1 // tokenId: uint256
box_get
assert
int 32
store 0 // full array
int 0 // initial offset
int 32 // headOffset
+
load 0 // full array
swap
int 256
extract3
byte 0x151f7c75
Expand All @@ -100,8 +112,14 @@ transferTo:
frame_dig -2 // tokenId: uint256
box_get
assert
store 0 // full array
int 0 // initial offset
int 0 // headOffset
+
load 0 // full array
swap
frame_dig -1 // to: address
replace2 0
replace3
frame_dig -2 // tokenId: uint256
swap
box_put
Expand Down Expand Up @@ -156,7 +174,12 @@ arc72_transferFrom:
frame_dig -4 // storage key//token
box_get
assert
int 288
store 0 // full array
int 0 // initial offset
int 288 // headOffset
+
load 0 // full array
swap
int 32
extract3
==
Expand Down Expand Up @@ -215,7 +238,12 @@ arc72_approve:
frame_dig -2 // tokenId: uint256
box_get
assert
int 288
store 0 // full array
int 0 // initial offset
int 288 // headOffset
+
load 0 // full array
swap
frame_dig -1 // approved: address
replace3
frame_dig -2 // tokenId: uint256
Expand Down
2 changes: 1 addition & 1 deletion examples/arc72/artifacts/ARC72.json

Large diffs are not rendered by default.

Loading