Skip to content

Commit

Permalink
Task 1: revert to GETGLOB
Browse files Browse the repository at this point in the history
  • Loading branch information
akifoq committed Aug 17, 2023
1 parent 9591f3a commit 95e345c
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions contracts/1.fc
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,15 @@
}

cell solution(int hash, cell cur) asm """
<{ PUSHNULL
AGAINBRK:
// ... cur cs
DROP DUP HASHCU
}>s x{82F0} |+ constant pref

<{ EQUAL IFRETALT
// hash cur
SWAP 1 SETGLOB PUSHNULL
<{ AGAINBRK:
// ... cur
DROP DUP HASHCU 1 GETGLOB EQUAL IFRETALT
CTOS // ... cs
DUP SREFS
REPEAT: LDREF
}>s constant suff

// hash cur
SWAP
pref PUSHSLICE
NEWC STSLICE
256 STU
suff PUSHSLICE STSLICER
ENDC CTOS BLESS
}>CONT
<{ 2DROP
<b b> PUSHREF
}>CONT
Expand Down

0 comments on commit 95e345c

Please sign in to comment.