This forum is a read-only archive. Posting, replying and signing in are disabled.

The Confusion about Smart Contracts

michaelfighting

Dear guys.

Can I only manually increase the value of a “ApplicationArgs” parameter each time when I write a value to a smart contract? For example
txn ApplicationArgs 1 —— txn ApplicationArgs 2

Is there a more automatic and convenient way to do this?

✔ Solved by fabrice in post #2
fabrice

Smart contract state can only change by making a transaction that calls the smart contract/application.

The smart contract can increment the state every time it is called, if that is what you want (instead of specifying the new value as argument).
But an application call transaction must be made.

✔ Solution