From aeda1be4b188cf8ab0437c0e9329d4c662154ee7 Mon Sep 17 00:00:00 2001 From: Spring Chiu Date: Wed, 5 Jun 2024 22:27:15 +0800 Subject: [PATCH] chore: update test toolchain version and doc --- .github/workflows/test.yml | 2 +- near-sdk/src/near.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea0e1db5b..77b9be29b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: platform: [ubuntu-latest, macos-latest] - toolchain: [stable, 1.72.1] + toolchain: [stable, 1.78.0] steps: - uses: actions/checkout@v3 - name: "${{ matrix.toolchain }} with rustfmt, and wasm32" diff --git a/near-sdk/src/near.rs b/near-sdk/src/near.rs index 0779dc958..5e3de62a0 100644 --- a/near-sdk/src/near.rs +++ b/near-sdk/src/near.rs @@ -1,4 +1,4 @@ -/// Initialization Methods inner #[near] annotation. +/// Initialization Methods inner #[near] annotation. More details can be found [here](https://docs.near.org/sdk/rust/contract-structure/near-bindgen#initialization-methods) /// /// By default, the Default::default() implementation of a contract will be used to initialize a contract. There can be a custom initialization function which takes parameters or performs custom logic with the following #[init] annotation: /// # Examples @@ -25,7 +25,7 @@ /// ``` pub fn init() {} -/// Payable Methods inner #[near] annotation. +/// Payable Methods inner #[near] annotation. More details can be found [here](https://docs.near.org/sdk/rust/contract-structure/near-bindgen#payable-methods) /// /// Methods can be annotated with #[payable] to allow tokens to be transferred with the method invocation. For more information, see payable methods. /// @@ -53,7 +53,7 @@ pub fn init() {} /// ``` pub fn payable() {} -/// Private Methods inner #[near] annotation. +/// Private Methods inner #[near] annotation. More details can be found [here](https://docs.near.org/sdk/rust/contract-structure/near-bindgen#private-methods) /// /// Some methods need to be exposed to allow the contract to call a method on itself through a promise, but want to disallow any other contract to call it. For this, use the #[private] annotation to panic when this method is called externally. See [private methods](https://docs.near.org/sdk/rust/contract-interface/private-methods) for more information. ///