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

Modify a line of code in test.rs #1405

Open
yskwmt opened this issue Dec 6, 2024 · 0 comments
Open

Modify a line of code in test.rs #1405

yskwmt opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yskwmt
Copy link

yskwmt commented Dec 6, 2024

What version are you using?

22.0.1

What did you do?

Followed this tutorial https://developers.stellar.org/docs/build/smart-contracts/getting-started/hello-world.
Created test.rs using the init command as follows.

stellar contract init soroban-hello-world

Got an error in the 'Contract Unit Test' section, and then modified Line 9 in test.rs as follows.

let contract_id = env.register_contract(None, Contract);

After the modification, I got the same output as shown in the tutorial.

What did you expect to see?

Image

What did you see instead?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant