From f9686793925210ed3b1063a589ab2a36473d4c71 Mon Sep 17 00:00:00 2001 From: Ngozi-Txfusion Date: Fri, 26 Jul 2024 17:18:29 +0100 Subject: [PATCH] fix: fix errors in documentation --- content/sdk/20.go/01.guides/00.getting-started.md | 2 ++ content/sdk/20.go/01.guides/02.accounts-l1-l2.md | 8 ++++---- content/sdk/30.python/01.guides/00.getting-started.md | 3 +++ content/sdk/60.rust/00.getting-started.md | 4 ++++ .../sdk/60.rust/contract-deployment-and-interaction.md | 4 ++++ 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/content/sdk/20.go/01.guides/00.getting-started.md b/content/sdk/20.go/01.guides/00.getting-started.md index 1787ec2..b8c53b5 100644 --- a/content/sdk/20.go/01.guides/00.getting-started.md +++ b/content/sdk/20.go/01.guides/00.getting-started.md @@ -943,4 +943,6 @@ func main() { } :: +::callout{icon="i-heroicons-light-bulb"} Examples are configured to interact with `ZKsync Era`, and `Sepolia` test networks. +:: diff --git a/content/sdk/20.go/01.guides/02.accounts-l1-l2.md b/content/sdk/20.go/01.guides/02.accounts-l1-l2.md index 41f13fd..f932b66 100644 --- a/content/sdk/20.go/01.guides/02.accounts-l1-l2.md +++ b/content/sdk/20.go/01.guides/02.accounts-l1-l2.md @@ -24,7 +24,7 @@ For a comprehensive example demonstrating the deposit workflow, refer to the fol ::collapsible - ```sh + ```bash package main import ( @@ -132,7 +132,7 @@ func main() { - Deposit ERC20 tokens ::collapsible - ```sh + ```bash package main @@ -297,7 +297,7 @@ For a complete example of how to execute the deposit workflow, take a look at th ::collapsible - ```sh + ```bash package main import ( @@ -359,7 +359,7 @@ func main() { - Withdraw ERC20 token ::collapsible - ```sh + ```bash package main diff --git a/content/sdk/30.python/01.guides/00.getting-started.md b/content/sdk/30.python/01.guides/00.getting-started.md index 05535d1..8a3e326 100644 --- a/content/sdk/30.python/01.guides/00.getting-started.md +++ b/content/sdk/30.python/01.guides/00.getting-started.md @@ -384,4 +384,7 @@ if __name__ == "__main__": f"{zk_web3.zksync.get_balance(paymaster_address, EthBlockParams.LATEST.value)}") print(f"Paymaster Crown token balance after mint: {token_contract.functions.balanceOf(paymaster_address).call()}") :: + +::callout{icon="i-heroicons-light-bulb"} Examples are configured to interact with `ZKsync Era` and `Sepolia` test networks. +:: diff --git a/content/sdk/60.rust/00.getting-started.md b/content/sdk/60.rust/00.getting-started.md index 1c77901..8c7a390 100644 --- a/content/sdk/60.rust/00.getting-started.md +++ b/content/sdk/60.rust/00.getting-started.md @@ -306,3 +306,7 @@ let withdraw_receipt_l1 = zk_wallet_2.get_eth_provider().unwrap().get_transactio [sdk]: https://github.com/lambdaclass/zksync-web3-rs/ [tokio]: https://tokio.rs/ + +::callout{icon="i-heroicons-exclamation-triangle" color="amber"} +For development and testing, it is recommended to use burner wallets. Avoid using real private keys to prevent security risks. +:: diff --git a/content/sdk/60.rust/contract-deployment-and-interaction.md b/content/sdk/60.rust/contract-deployment-and-interaction.md index 3e70ec6..9265fa1 100644 --- a/content/sdk/60.rust/contract-deployment-and-interaction.md +++ b/content/sdk/60.rust/contract-deployment-and-interaction.md @@ -296,3 +296,7 @@ async fn interact_with_contract() { [test-node]: https://github.com/matter-labs/era-test-node/ [abi]: https://raw.githubusercontent.com/lambdaclass/zksync-web3-rs/7ae7bec0323d878beac2b74f00256f8589b4a206/examples/contract-deployment/Greeter.abi [bin]: https://raw.githubusercontent.com/lambdaclass/zksync-web3-rs/7ae7bec0323d878beac2b74f00256f8589b4a206/examples/contract-deployment/Greeter.bin + +::callout{icon="i-heroicons-exclamation-triangle" color="amber"} +For development and testing, it is recommended to use burner wallets. Avoid using real private keys to prevent security risks. +::