From 9897b667450ad59b6ad21b23b994e9f13d97ca4f Mon Sep 17 00:00:00 2001
From: Reza Rahemtola <49811529+RezaRahemtola@users.noreply.github.com>
Date: Fri, 20 Sep 2024 17:00:08 +0200
Subject: [PATCH] docs(gno-js): remove wrong param in getFileContent (#2419)
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`
Contributors' checklist...
- [ ] 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).
---
docs/reference/gno-js-client/gno-provider.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/reference/gno-js-client/gno-provider.md b/docs/reference/gno-js-client/gno-provider.md
index df808106cc3..1b9cbd53652 100644
--- a/docs/reference/gno-js-client/gno-provider.md
+++ b/docs/reference/gno-js-client/gno-provider.md
@@ -116,7 +116,7 @@ Returns **Promise**
#### Usage
```ts
-await provider.getFileContent('gno.land/r/demo/foo20', 'TotalSupply()')
+await provider.getFileContent('gno.land/r/demo/foo20')
/*
foo20.gno
foo20_test.gno