Skip to content

Commit

Permalink
chore: fixups / re-runs after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
achidlow committed Feb 20, 2024
1 parent 13a8f5d commit e844877
Show file tree
Hide file tree
Showing 21 changed files with 1,180 additions and 1,166 deletions.
116 changes: 58 additions & 58 deletions examples/voting/out/voting_VotingRoundApp.ssa.opt_pass_1.ir

Large diffs are not rendered by default.

514 changes: 257 additions & 257 deletions examples/voting/puya.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test_cases/abi_routing/out/application.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test_cases/arc4_types/bool_eval.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typing as t

from puyapy import Contract, arc4
from puyapy.op import Global, Transaction
from puyapy.op import Global, Txn


class MyStruct(arc4.Struct):
Expand All @@ -17,7 +17,7 @@ def approval_program(self) -> bool:
assert arc4.String(".")

assert not arc4.Address(Global.zero_address)
assert arc4.Address(Transaction.sender)
assert arc4.Address(Txn.sender)

assert not arc4.UInt8(0)
assert arc4.UInt8(1)
Expand Down
2 changes: 1 addition & 1 deletion test_cases/arc4_types/out/bool_eval.approval.teal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_cases.arc4_types.bool_eval.Arc4BoolEvalContract.approval_program:
==
assert
// arc4_types/bool_eval.py:20
// assert arc4.Address(Transaction.sender)
// assert arc4.Address(Txn.sender)
txn Sender
global ZeroAddress
!=
Expand Down
2 changes: 1 addition & 1 deletion test_cases/arc4_types/out/bool_eval.approval_O2.teal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_cases.arc4_types.bool_eval.Arc4BoolEvalContract.approval_program:
==
assert
// arc4_types/bool_eval.py:20
// assert arc4.Address(Transaction.sender)
// assert arc4.Address(Txn.sender)
txn Sender
global ZeroAddress
!=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test_cases.arc4_types.bool_eval.Arc4BoolEvalContract.approval_program:
==
assert
// arc4_types/bool_eval.py:20
// assert arc4.Address(Transaction.sender)
// assert arc4.Address(Txn.sender)
txn Sender
global ZeroAddress
!=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ main_block@0:
// virtual: store tmp%8#0 to l-stack (no copy) tmp%8#0 not arc4.Address(Global.zero_address) arc4_types/bool_eval.py:19
// virtual: load tmp%8#0 from l-stack (no copy) tmp%8#0 assert not arc4.Address(Global.zero_address) arc4_types/bool_eval.py:19
assert // assert not arc4.Address(Global.zero_address) arc4_types/bool_eval.py:19
txn Sender // {txn} Transaction.sender arc4_types/bool_eval.py:20
// virtual: store tmp%9#0 to l-stack (no copy) tmp%9#0 Transaction.sender arc4_types/bool_eval.py:20
global ZeroAddress // tmp%9#0,{global} arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
// virtual: store tmp%10#0 to l-stack (no copy) tmp%9#0,tmp%10#0 arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
// virtual: load tmp%9#0 from l-stack (no copy) tmp%10#0,tmp%9#0 arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
// virtual: load tmp%10#0 from l-stack (no copy) tmp%9#0,tmp%10#0 arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
!= // {!=} arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
// virtual: store tmp%11#0 to l-stack (no copy) tmp%11#0 arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
// virtual: load tmp%11#0 from l-stack (no copy) tmp%11#0 assert arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
assert // assert arc4.Address(Transaction.sender) arc4_types/bool_eval.py:20
txn Sender // {txn} Txn.sender arc4_types/bool_eval.py:20
// virtual: store tmp%9#0 to l-stack (no copy) tmp%9#0 Txn.sender arc4_types/bool_eval.py:20
global ZeroAddress // tmp%9#0,{global} arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
// virtual: store tmp%10#0 to l-stack (no copy) tmp%9#0,tmp%10#0 arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
// virtual: load tmp%9#0 from l-stack (no copy) tmp%10#0,tmp%9#0 arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
// virtual: load tmp%10#0 from l-stack (no copy) tmp%9#0,tmp%10#0 arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
!= // {!=} arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
// virtual: store tmp%11#0 to l-stack (no copy) tmp%11#0 arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
// virtual: load tmp%11#0 from l-stack (no copy) tmp%11#0 assert arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
assert // assert arc4.Address(Txn.sender) arc4_types/bool_eval.py:20
int 1 // 1 True arc4_types/bool_eval.py:71
return // return True arc4_types/bool_eval.py:71

2 changes: 1 addition & 1 deletion test_cases/arc4_types/out/mutation.O0.log
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ PC Teal
2360 retsub "Z", 0x000701023201023204
271 swap 0x000701023201023204, "Z"
272 byte 0x5a 0x000701023201023204, "Z", "Z"
274 == 0x000701023201023204, 1
274 b== 0x000701023201023204, 1
275 assert 0x000701023201023204
276 byte 0x0007 0x000701023201023204, 0x0007
278 byte 0x01 0x000701023201023204, 0x0007, 0x01
Expand Down
Loading

0 comments on commit e844877

Please sign in to comment.