Skip to content

Commit

Permalink
chore: update test toolchain version and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fospring committed Jun 5, 2024
1 parent 3d9b6ee commit aeda1be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions near-sdk/src/near.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
///
Expand Down Expand Up @@ -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.
///
Expand Down

0 comments on commit aeda1be

Please sign in to comment.