Browse Source

Merge pull request #285 from moxiegirl/say-hi

Last minute tweaks
feat/clarity-updates
Moxiegirl 6 years ago
committed by GitHub
parent
commit
201920543c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      _core/smart/sdk-quickstart.md

8
_core/smart/sdk-quickstart.md

@ -84,7 +84,7 @@ Your project should contain three directories:
The `contracts` directory contains a single file in `sample/hello-world.clar` file.
```cl
(define (hello-world)
(define (say-hi)
"hello world")
(define (echo-number (val int))
@ -117,8 +117,8 @@ describe("hello world contract test suite", () => {
await helloWorldClient.deployContract();
});
it("should print hello world message", async () => {
const query = helloWorldClient.createQuery({ method: { name: "hello-world", args: [] } });
it("should return 'hello world'", async () => {
const query = helloWorldClient.createQuery({ method: { name: "say-hi", args: [] } });
const receipt = await helloWorldClient.submitQuery(query);
const result = Result.unwrap(receipt);
const parsedResult = Buffer.from(result.replace("0x", ""), "hex").toString();
@ -231,7 +231,7 @@ Finally, try adding a `counter` variable and be sure to store it. Increment `cou
;; Storage
(define-data-var internal-value int 0)
``
```
<div class="uk-inline">
<button class="uk-button uk-button-primary" enter="button">ANSWER</button>

Loading…
Cancel
Save