From 69d205e7bd5348eefdbf59f846e0b086e9202b52 Mon Sep 17 00:00:00 2001 From: gagdiez Date: Fri, 4 Oct 2024 20:47:49 +0200 Subject: [PATCH] fix: crowdin --- .github/workflows/build-docs.yml | 4 ++++ .github/workflows/translation.yml | 1 - docs/2.build/2.smart-contracts/anatomy/collections.md | 9 +++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index b9cae52678f..2af2597c8db 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -51,6 +51,10 @@ jobs: yarn yarn build + - name: Upload to Crowdin + continue-on-error: true + run: yarn crowdin:upload + - name: Commit build run: | git add -f ./website/build ./website/.docusaurus ./website/i18n diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 2f6e1c57238..6030a7a3d1f 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -40,7 +40,6 @@ jobs: run: | cd website yarn - yarn crowdin:upload yarn crowdin:download yarn build diff --git a/docs/2.build/2.smart-contracts/anatomy/collections.md b/docs/2.build/2.smart-contracts/anatomy/collections.md index a36b2e9c199..f2241a5be3e 100644 --- a/docs/2.build/2.smart-contracts/anatomy/collections.md +++ b/docs/2.build/2.smart-contracts/anatomy/collections.md @@ -29,7 +29,7 @@ If your collection has up to 100 entries, it's acceptable to use the native coll Each time the contract is executed, the first thing it will do is to read the values and [deserialize](./serialization.md) them into memory, and after the function finishes, it will [serialize](./serialization.md) and write the values back to the database. -For native collections, the contract will fully load the collection into memory before all methods execution. The method you invoke may not even use the loaded collection. Know that this will have impact on GAS you spend for methods in your contract. +For native collections, the contract will fully load the collection into memory before any method executes. This happens even if the method you invoke does not use the collection. Know that this will have impact on GAS you spend for methods in your contract. @@ -294,14 +294,15 @@ Implements a [map/dictionary](https://en.wikipedia.org/wiki/Associative_array) w Implements a [set](https://en.wikipedia.org/wiki/Set_(abstract_data_type)) which persists in the contract's storage. Please refer to the Rust and JS SDK's for a full reference on their interfaces. + + url="https://github.com/near-examples/storage-examples/blob/main/collections-js/src/contract.ts" start="60" end="74" /> + + url="https://github.com/near-examples/storage-examples/blob/main/collections-rs/store/src/lookup_set.rs" start="4" end="18"/>