|
@ -124,7 +124,7 @@ await helloWorldClient.deployContract(); |
|
|
Finally, you will find snippets that call the public `say-hi` function of the contract: |
|
|
Finally, you will find snippets that call the public `say-hi` function of the contract: |
|
|
|
|
|
|
|
|
```js |
|
|
```js |
|
|
const query = helloWorldClient.createQuery({ function: { name: 'say-hi', args: [] } }); |
|
|
const query = helloWorldClient.createQuery({ method: { name: 'say-hi', args: [] } }); |
|
|
const receipt = await helloWorldClient.submitQuery(query); |
|
|
const receipt = await helloWorldClient.submitQuery(query); |
|
|
const result = Result.unwrapString(receipt); |
|
|
const result = Result.unwrapString(receipt); |
|
|
``` |
|
|
``` |
|
|