From 3721633b215c234be37cf6334044979c3c9ba6de Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Tue, 11 Jun 2024 15:51:28 +0800 Subject: [PATCH 1/2] update first contract --- .../pages/build/getting-started/first-contract.en-US.mdx | 4 ++-- .../pages/build/getting-started/first-contract.zh-CN.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/website/pages/build/getting-started/first-contract.en-US.mdx b/docs/website/pages/build/getting-started/first-contract.en-US.mdx index 8cee5cfef9..ead90a4a31 100644 --- a/docs/website/pages/build/getting-started/first-contract.en-US.mdx +++ b/docs/website/pages/build/getting-started/first-contract.en-US.mdx @@ -10,7 +10,7 @@ rooch move new hello_rooch After executing this Rooch CLI command, a Rooch contract project will be created and automatically initialized. The root directory of the project contains a `sources` directory for storing the Move contract code, and a manifest file named `Move.toml` for declaring the current project. The name, version, address alias (named address) and project dependencies. -Contents of the `Move.toml` file of the `hello-rooch` project: +Contents of the `Move.toml` file of the `hello_rooch` project: ```toml [package] @@ -23,7 +23,7 @@ MoveosStdlib = { git = "https://github.com/rooch-network/rooch.git", subdir = "f RoochFramework = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/rooch-framework", rev = "main" } [addresses] -hello_rooch = "0xf5ecfc49f55e283119104978b60995b0ec84a5bd760a0305b24b9a4175deff7b" +hello_rooch = "0xbc34dd9a140ab26f88f466c9ea7ea14507bc2795dcfd4b6c7ac694dd3c2e1c8d" std = "0x1" moveos_std = "0x2" rooch_framework = "0x3" diff --git a/docs/website/pages/build/getting-started/first-contract.zh-CN.mdx b/docs/website/pages/build/getting-started/first-contract.zh-CN.mdx index 67acc0e91d..693f591e16 100644 --- a/docs/website/pages/build/getting-started/first-contract.zh-CN.mdx +++ b/docs/website/pages/build/getting-started/first-contract.zh-CN.mdx @@ -10,7 +10,7 @@ rooch move new hello_rooch 执行这个 Rooch CLI 命令后会创建并自动初始化一个 Rooch 合约项目,在项目的根目录,包含一个用于存放 Move 合约代码的 `sources` 目录,以及一个名为 `Move.toml` 的清单文件,用于声明当前项目的名称、版本、地址别名(命名地址)和项目的依赖。 -`hello-rooch` 项目的 `Move.toml` 文件内容: +`hello_rooch` 项目的 `Move.toml` 文件内容: ```toml [package] @@ -23,7 +23,7 @@ MoveosStdlib = { git = "https://github.com/rooch-network/rooch.git", subdir = "f RoochFramework = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/rooch-framework", rev = "main" } [addresses] -hello_rooch = "0xf5ecfc49f55e283119104978b60995bcontext0ec84a5bd760a0305b24b9a4175deff7b" +hello_rooch = "0xbc34dd9a140ab26f88f466c9ea7ea14507bc2795dcfd4b6c7ac694dd3c2e1c8d" std = "0x1" moveos_std = "0x2" rooch_framework = "0x3" From ca67eb479fe4def9d772012a40bbebe5f53645a3 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Tue, 11 Jun 2024 21:34:31 +0800 Subject: [PATCH 2/2] fix first account --- .../pages/build/getting-started/first-account.en-US.mdx | 3 +-- .../pages/build/getting-started/first-account.zh-CN.mdx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/website/pages/build/getting-started/first-account.en-US.mdx b/docs/website/pages/build/getting-started/first-account.en-US.mdx index f336df496d..aba1b24398 100644 --- a/docs/website/pages/build/getting-started/first-account.en-US.mdx +++ b/docs/website/pages/build/getting-started/first-account.en-US.mdx @@ -33,10 +33,9 @@ You can use `rooch account list` to view the corresponding hex type address. [joe@mx sources]$ rooch account create Generated new keypair for address with key pair type [rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d] Secret Recovery Phrase : [eagle warm pull merit hunt visual top pig arctic derive observe village] -"0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3" ``` -A new account is manually created here, `rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`, and the corresponding `hex` type address is `0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3`. +A new account is manually created here, `rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`. This account address is derived from the same set of mnemonic words, so it can also be recovered using the same mnemonic word. diff --git a/docs/website/pages/build/getting-started/first-account.zh-CN.mdx b/docs/website/pages/build/getting-started/first-account.zh-CN.mdx index 1b9ecb31e7..bf96ec59fa 100644 --- a/docs/website/pages/build/getting-started/first-account.zh-CN.mdx +++ b/docs/website/pages/build/getting-started/first-account.zh-CN.mdx @@ -33,10 +33,9 @@ null [joe@mx sources]$ rooch account create Generated new keypair for address with key pair type [rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d] Secret Recovery Phrase : [eagle warm pull merit hunt visual top pig arctic derive observe village] -"0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3" ``` -这里手动创建了一个新的账户,`rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`,对应的 `hex` 类型地址为 `0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3`。 +这里手动创建了一个新的账户,`rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`。 这个账户地址属于同一套助记词派生而来,因此也可以使用相同的助记词来恢复。