Step 5. Test workflow execution

Now that our lottery automation workflow is up and running, you can proceed to the lottery smart contract and make two deposits. The Nerif Network workflow will then initiate a transaction, and the winner will be selected.

To make a deposit, navigate to the Lottery contract and locate enter function under the write tab. This function allows users to submit their deposits and participate in the lottery.

Once a second deposit is made, the Nerif Network workflow will initiate a transaction and the winner will be selected.

Last updated