Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complete challenge #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions challenge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ The following code will create an instance of the HelloWorldClient and call the
There are 2 bugs in the below code. Find and fix them.

Hint: Read the Typed clients section in the documentation: https://developer.algorand.org/docs/get-details/algokit/features/generate/?from_query=algokit%20utils#1-typed-clients

*/

const appClient = new HelloWorldClient(
{
resolveBy: 'creatorAndName',
findExistingUsing: indexer,
sender: deployer,
creatorAddress: deployer,
creatorAddress: deployer.addr,
},
indexer,
algod,
)

await appClient.create.createApplication({});

// TODO: change YOUR_NAME to your name or nickname
const result = await appClient.helloWorld({name: "YOUR_NAME"}, {sendParams: {suppressLog: true}})
const result = await appClient.helloWorld({name: "Eve"}, {sendParams: {suppressLog: true}})

console.log(result.return)
8 changes: 4 additions & 4 deletions challenge/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion challenge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"start": "tsx -r dotenv/config index.ts"
},
"dependencies": {
"@algorandfoundation/algokit-utils": "^5.6.0",
"@algorandfoundation/algokit-utils": "^5.8.0",
"@algorandfoundation/tealscript": "^0.88.0",
"algosdk": "^2.7.0",
"dotenv": "^16.4.4",
Expand Down