onflow / onflow/docs

[BUG] Getting Started HelloWorld Contract Is Incorrect

Open
#976 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug documentation
Dominant language
TypeScript
Stars
13
Forks
81
PR merge metrics
No merged PRs in 30d

Description

Current Behavior

In the Hello World guide, upon executing the first script, the integrated runner returns dddd instead of the expected Hello, World!.

This is because the deployed contract defines the changeGreeting(String) function as public:

access(all) fun changeGreeting(newGreeting: String) {
  self.greeting = newGreeting
}
Expected Behavior

The guide contains the correct version here that should be deployed to the 0xa1296b1e2e90ca5b account.

Steps To Reproduce

Visit here

Environment

N/A

What are you currently working on that this is blocking?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Hello World guide's contract explanation and the linked steps for executing the first script, then compare them with the deployed contract at 0xa1296b1e2e90ca5b. Done means the guide's first script returns Hello, World! instead of dddd when using the deployed contract.

Written by the indexing model from the issue text.

Assessment

Domain
blockchain, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.