From 6da6f5569e655c1689ed2cb795fb17df06af61fc Mon Sep 17 00:00:00 2001 From: Ben Guidarelli Date: Thu, 9 Mar 2023 01:03:20 -0500 Subject: [PATCH] fix: remove demo method from readme --- README.md | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 9b8a4a69..049ab5ed 100644 --- a/README.md +++ b/README.md @@ -37,29 +37,28 @@ def hello(name: abi.String, *, output: abi.String) -> Expr: return output.set(Concat(Bytes("Hello, "), name.get())) -def demo() -> None: - # Create an Application client - app_client = client.ApplicationClient( - # Get sandbox algod client - client=sandbox.get_algod_client(), - # Pass instance of app to client - app=hello_app, - # Get acct from sandbox and pass the signer - signer=sandbox.get_accounts().pop().signer, - ) - - # Deploy the app on-chain - app_id, app_addr, txid = app_client.create() - print( - f"""Deployed app in txid {txid} - App ID: {app_id} - Address: {app_addr} - """ - ) - - # Call the `hello` method - result = app_client.call(hello, name="Beaker") - print(result.return_value) # "Hello, Beaker" +# Create an Application client +app_client = client.ApplicationClient( + # Get sandbox algod client + client=sandbox.get_algod_client(), + # Pass instance of app to client + app=hello_app, + # Get acct from sandbox and pass the signer + signer=sandbox.get_accounts().pop().signer, +) + +# Deploy the app on-chain +app_id, app_addr, txid = app_client.create() +print( + f"""Deployed app in txid {txid} + App ID: {app_id} + Address: {app_addr} +""" +) + +# Call the `hello` method +result = app_client.call(hello, name="Beaker") +print(result.return_value) # "Hello, Beaker" ```