-
Notifications
You must be signed in to change notification settings - Fork 148
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
Created an example for 'Get file contents' functionality #2561
Conversation
Have you tested this example to ensure it runs correctly? 🔧 Will this work on a local network setup as well? 👾 |
Thank you for your guidance.
let me update my code and do further tests
…On Mon, Oct 7, 2024 at 3:51 PM ivaylogarnev ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In examples/get-file-contents.js
<#2561 (comment)>
:
> + // Step 2: File contents query
+ const fileId = FileId.fromString(fileIdStr); // Convert fileId to FileId object
+ console.log(`Querying contents of file with ID: ${fileId}`);
+ const query = new FileContentsQuery()
+ .setFileId(fileId)
+ .setMaxQueryPayment(new Hbar(2)); // Set max payment to 2 HBAR
+
+ // Step 3: Processing the file contents
+ const contents = await query.execute(client);
+ console.log("File contents retrieved successfully.");
+
+ // Output the file contents
+ console.log("File contents:");
+ console.log(contents.toString("utf8")); // Convert contents to a readable string
+ } catch (error) {
+ // Step 5: Error handling
Small typo, its step 4 here :)
------------------------------
In examples/get-file-contents.js
<#2561 (comment)>
:
> +import {
+ Client,
+ PrivateKey,
+ AccountId,
+ FileContentsQuery,
+ Hbar,
+ FileId,
+} from ***@***.***/sdk";
+import dotenv from "dotenv";
+
+dotenv.config();
+
+async function main() {
+ console.log("Get File Contents Example Start!");
+
+ // Step 1: Client and operator setup
Could you use this template format for comments to make them more
noticeable?
/*
* Step 1:
* Client and operator setup.
*/
------------------------------
In examples/get-file-contents.js
<#2561 (comment)>
:
> +
+dotenv.config();
+
+async function main() {
+ console.log("Get File Contents Example Start!");
+
+ // Step 1: Client and operator setup
+ const operatorId = AccountId.fromString(process.env.OPERATOR_ID);
+ const operatorKey = PrivateKey.fromStringECDSA(process.env.OPERATOR_KEY);
+ const client = Client.forName(process.env.HEDERA_NETWORK || "testnet");
+ client.setOperator(operatorId, operatorKey);
+
+ console.log("Client and operator setup complete.");
+
+ // For this example, we'll use a known file ID. In practice, you'd use an existing file ID.
+ const fileIdStr = process.env.FILE_ID;
You want to avoid using a hardcoded value for the FileId, as this ID may
corresponds to a file on the testnet network. Instead, refer to the Java
<https://github.com/hashgraph/hedera-sdk-java/blob/main/examples/src/main/java/com/hedera/hashgraph/sdk/examples/GetFileContentsExample.java>
example, where we first execute a FileCreate transaction to create the file
on the network specified by the client. After that, we retrieve the
contents of the newly created file.
Please review the Java example again and proceed by following that flow.
------------------------------
In examples/get-file-contents.js
<#2561 (comment)>
:
> + );
+ }
+ if ("receipt" in error && error.receipt) {
+ console.error(
+ `Transaction receipt: ${JSON.stringify(error.receipt, null, 2)}`,
+ );
+ }
+ }
+ } finally {
+ // Close the client
+ client.close();
+ console.log("Get File Contents Example Complete!");
+ }
+}
+
+main().catch((error) => {
We don't expect any unexpected errors here, as any issues should be caught
earlier in the process. Please take a look at the other JavaScript
examples <https://github.com/hashgraph/hedera-sdk-js/tree/main/examples>
and review the conventions we follow when creating a JS example.
------------------------------
In examples/get-file-contents.js
<#2561 (comment)>
:
> + console.log(`Querying contents of file with ID: ${fileId}`);
+ const query = new FileContentsQuery()
+ .setFileId(fileId)
+ .setMaxQueryPayment(new Hbar(2)); // Set max payment to 2 HBAR
+
+ // Step 3: Processing the file contents
+ const contents = await query.execute(client);
+ console.log("File contents retrieved successfully.");
+
+ // Output the file contents
+ console.log("File contents:");
+ console.log(contents.toString("utf8")); // Convert contents to a readable string
+ } catch (error) {
+ // Step 5: Error handling
+ console.error("Error occurred during file query:");
+ if (typeof error === "object" && error !== null) {
You can simply log the error to the console here—there’s no need to
overcomplicate it with specific error-handling. The main point is just to
display the error, as this isn’t our primary focus. Let's keep it
straightforward.
—
Reply to this email directly, view it on GitHub
<#2561 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXJXRHQH4N7LQLKF7TRA53Z2J7V3AVCNFSM6AAAAABPMFR4RWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJQHA3TGMBTHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The code is tested and run it on local node. updated the file |
* feat: Added removeSignature/clearAllSignatures methods to Transaction class, wrote some unit tests for both Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * feat: Added more unit tests for removeSignature/clearAllSignatures and throwing an error if trying to remove non-existing signature Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Turned signAndAddSignatures function into arrow Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Cleared some unnecessary comments and changed variable assigment Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * feat: Enhancement removeSignature/clearAllSignatures to return the removedSignatures and wrote tests for both Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Removed the signature param from removeSignature method and adjusted the logic, renamed clearAllSignatures and changed the return type, adjusted some tests Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Remove redundant code Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * Merge branch 'main' into feat/2461-remove-clear-signatures Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Cleared some uneccessary comments & changed a bit the flow some methods conditions Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * Merge branch main into feat/2461-remove-clear-signatures Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Refactored signTransaction method a bit, added integration tests and examples for the multi-node flow Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Removed duplicate integration tests and added description to examples Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * refactor: Examples pre-release warnings fixes Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> --------- Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> Signed-off-by: ivaylogarnev <ivaylo.garnev@limechain.tech> Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
* style: Remove rebundant empty line Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * docs: Update CHANGELOG Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * chore: Update package json version Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> --------- Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…ecov npm package. (hiero-ledger#2558) * ci: Updating the build workflow to use Codecov actions instead of codecov npm package. Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: Attempting a workaround for lcov.info missing. Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: Commenting out long running jobs to try and troubleshoot. Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: Troubleshooting folder contents Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: testing with different task Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: Adding in back Node start and stop Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: Editing the tasks and testing again Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: changing from c8 to nyc Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: removing one more npx codecov for troubleshooting Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: Re-enable integration and final job changes. Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * ci: reverting back to c8 from nyc Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> * Removing .nycrc.json as its no longer needed. Signed-off-by: Vasil Boyadzhiev <vasil.boiadzhiev@gmail.com> --------- Signed-off-by: Vasil Boyadzhiev <vasil.boyadzhiev@limechain.tech> Signed-off-by: Vasil Boyadzhiev <vasil.boiadzhiev@gmail.com> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
* fix: serialize deserialize fileappend Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: return _makeTransactionData Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: add integration test for fromByte toByte converison Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: implement better transaction conversion Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: fileappend hip-765 finish implementation Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * revert: remove multi signature multi node feat for FileAppend Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: freeze transaction after fromBytes Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: disallow addSignature check for chunked transactions in transaction class Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: linter complains about skipped test Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: move type definitions because of linter Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * revert: old type definitions Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: throw error when required chunks are more than max chunks Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: required chunks should not be an error Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * style: fix jsdoc comment when building incomplete transaction Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: reuse variables in file append integration tests Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: delete already defined variables Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: fix typo in test name Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: return back addSignature return type Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: fix typo Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: implement maxChunks when serializing content too Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: wrong comparison Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * style: add empty lines Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: generate new transactionId Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: add more integration tests Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: extract dummy account id to const Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: fix function nane typo Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor: fix function name typo 2 Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * chore: remove incompleted references Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> --------- Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…iero-ledger#2537) * fix: change FEE_SCHEDULE_FILE_PART_UPLOADED to not show as an error Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: add integration test for fee schedule file Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * refactor(test): add const variable for dummy text Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * chore: reuse finished status Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> --------- Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
* docs: update changelog Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * chore: bump sdk version Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> --------- Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
* chore: bump package version Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * docs: update changelog Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> --------- Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
* fix: lock protobufjs version Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * chore: update pnpm-lock in proto package Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> --------- Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…2568) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@692973e...eef6144) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…der (hiero-ledger#2484) Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md) - [Commits](micromatch/micromatch@4.0.5...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…-ledger#2483) Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md) - [Commits](micromatch/micromatch@4.0.5...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…2357) Bumps [ws](https://github.com/websockets/ws) from 6.2.2 to 6.2.3. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@6.2.2...6.2.3) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…ledger#2349) Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](micromatch/braces@3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…-ledger#2249) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.0 to 6.2.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v6.2.0...v6.2.1) --- updated-dependencies: - dependency-name: tar dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…ledger#2150) Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9. - [Commits](indutny/node-ip@v1.1.8...v1.1.9) --- updated-dependencies: - dependency-name: ip dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…r#2224) Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.18.2...4.19.2) --- updated-dependencies: - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
* feat: expose PendingAirdropId Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * fix: allow empty props Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> * test: add pendingairdropid unit tests Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> --------- Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `body-parser` from 1.20.2 to 1.20.3 - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](expressjs/body-parser@1.20.2...1.20.3) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](expressjs/express@4.19.2...4.21.0) --- updated-dependencies: - dependency-name: body-parser dependency-type: direct:production - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…dger#2559) * feat: Changed the return type of removeAllSignatures method of Transaction class and fixed unit and integration related tests Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * fix: Fixed some CI comments for typezation in collectSignaturesByPublicKey method Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> * tests: Added tests for early return checks in _coolectSignaturesByPublicKey method Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> --------- Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech> Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Co-authored-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `send` from 0.18.0 to 0.19.0 - [Release notes](https://github.com/pillarjs/send/releases) - [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md) - [Commits](pillarjs/send@0.18.0...0.19.0) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](expressjs/express@4.19.2...4.21.0) --- updated-dependencies: - dependency-name: send dependency-type: indirect - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to 0.1.10 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `path-to-regexp` from 0.1.7 to 0.1.10 - [Release notes](https://github.com/pillarjs/path-to-regexp/releases) - [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md) - [Commits](pillarjs/path-to-regexp@v0.1.7...v0.1.10) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](expressjs/express@4.19.2...4.21.0) --- updated-dependencies: - dependency-name: path-to-regexp dependency-type: indirect - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…ero-ledger#2550) Bumps [renovatebot/github-action](https://github.com/renovatebot/github-action) from 40.2.6 to 40.3.1. - [Release notes](https://github.com/renovatebot/github-action/releases) - [Changelog](https://github.com/renovatebot/github-action/blob/main/CHANGELOG.md) - [Commits](renovatebot/github-action@b266b24...a1ed1d0) --- updated-dependencies: - dependency-name: renovatebot/github-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
…r#2540) Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.2.2 to 4.4.0. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@6a0805f...b36c23c) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech> Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
Signed-off-by: b-l-u-e <winnie.gitau282@gmail.com>
|
Thank you so much for you work! I just have a small request regarding the PR. Could you please create a new PR by cloning from the main branch and include the new file in a single commit? This will help avoid any issues with references or CI errors due to the existing 32 commits. Thanks again for your contribution, and I appreciate your understanding! |
@ivaylogarnev-limechain thanks for the feedback. |
I created the PR what happens to this now? should i close it or delete it? Please advice |
Closing due to new PR opened for this issue |
Description:
This PR adds a get-file-contents example to demonstrate how to retrieve file contents using the Hedera JavaScript SDK. This functionality is important for developers who need to access and work with file data stored on the Hedera network.
Related issue(s):
Fixes # 2513