From 817463e13d7636b9c48f8b439948618953d96609 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 16 Apr 2022 14:33:39 -0400 Subject: [PATCH] better name for js reference (#65) --- src/SUMMARY.md | 2 +- src/anchor_in_depth/milestone_project_tic-tac-toe.md | 2 +- src/anchor_references/js_type_conversion_reference.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index a24450a..595fd8e 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -33,7 +33,7 @@ - [Anchor References](./anchor_references/anchor_references.md) - [Space Reference](./anchor_references/space.md) - - [Javascript Type Conversion Reference](./anchor_references/js_type_conversion_reference.md) + - [Javascript Anchor Types Reference](./anchor_references/js_type_conversion_reference.md) - [CLI Reference](./anchor_references/cli.md) - [AVM Reference](./anchor_references/avm.md) - [Anchor.toml Reference](./anchor_references/anchor-toml_reference.md) diff --git a/src/anchor_in_depth/milestone_project_tic-tac-toe.md b/src/anchor_in_depth/milestone_project_tic-tac-toe.md index bce46dc..b7d9415 100644 --- a/src/anchor_in_depth/milestone_project_tic-tac-toe.md +++ b/src/anchor_in_depth/milestone_project_tic-tac-toe.md @@ -316,7 +316,7 @@ The structure of the transaction function is as follows: First come the instruct We did not have to specify the `system_program` account. This is because anchor recognizes this account and is able to infer it. This is also true for other known accounts such as the `token_program` or the `rent` sysvar account. After the transaction returns, we can fetch the state of the game account. You can fetch account state using the `program.account` namespace. -Finally, we verify the game has been set up properly by comparing the actual state and the expected state. To learn how Anchor maps the Rust types to the js/ts types, check out the [Javascript Type Conversion Reference](./../anchor_references/js_type_conversion_reference.md). +Finally, we verify the game has been set up properly by comparing the actual state and the expected state. To learn how Anchor maps the Rust types to the js/ts types, check out the [Javascript Anchor Types Reference](./../anchor_references/js_type_conversion_reference.md). Now, run `anchor test`. This starts up (and subsequently shuts down) a local validator (make sure you don't have one running before) and runs your tests using the test script defined in `Anchor.toml`. diff --git a/src/anchor_references/js_type_conversion_reference.md b/src/anchor_references/js_type_conversion_reference.md index 1810f2d..f736202 100644 --- a/src/anchor_references/js_type_conversion_reference.md +++ b/src/anchor_references/js_type_conversion_reference.md @@ -1,4 +1,4 @@ -# Javascript Type Conversion Reference +# Javascript Anchor Types Reference This reference shows you how rust types are mapped to javascript/typescript types in the client.