Skip to content

Commit

Permalink
docs(gno-js): remove wrong param in getFileContent (gnolang#2419)
Browse files Browse the repository at this point in the history
The example is using a wrong argument (probably copy pasted from the
previous one above) that doesn't match the function signature (2nd param
is an optional `height`

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
  • Loading branch information
RezaRahemtola committed Sep 20, 2024
1 parent dc0cc26 commit 9897b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/gno-js-client/gno-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Returns **Promise<string\>**
#### Usage

```ts
await provider.getFileContent('gno.land/r/demo/foo20', 'TotalSupply()')
await provider.getFileContent('gno.land/r/demo/foo20')
/*
foo20.gno
foo20_test.gno
Expand Down

0 comments on commit 9897b66

Please sign in to comment.