All - Activity - SethDev - Algorand

PyTeal - Logicsig

I understand now, Thank you Ben!


But I can specify the sender to another address like so:

Txn.sender() == “address” and only that address passed will be the sender else the contract fails, So do you mean if I don’t specify, the Txn.sender() will be the contract address. Am I right?```

---

I was playing around with Pyteal and I thought about this…

```python
program = And(
    Txn.type_enum() == TxnType.Payment,
    Txn.fee() <= Int(1000),
    Txn.amount() >= Int(1000),
    Txn.sender() == Addr(),
    Global.group_size() == Int(1),
    Txn.rekey_to() == Global.zero_address
)```

---

Hi, please refer to this: [Link](https://forum.algorand.co/t/how-can-i-sign-tx-for-opt-in-of-asas-for-a-contract-address-without-using-private-key-just-with-logicsig-program/5224/10)

---

Just seeing this, thank you!

---

Can TEAL perform a swap functionality like Uniswap or Pancakeswap?

---

Having written a smart contract with teal. How do I test the smart contract?

---

Any resources from Algorand to properly learn TEAL smart contract? e.g tutorial videos.  
And how can TEAL smart contracts be tested, If it has an IDE or perhaps a tool that can be used to test the smart contracts? Likewise for PyTEAL

---

Okay, thank you! Understood.

---

Hello! I am wondering if TEAL has some updates which improves this?  
Image from: [Link](https://developer.algorand.org/docs/reference/teal/specification/)

---