Skip to content

Commit

Permalink
Merge branch 'main' into high-low-level-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
flmel authored Nov 6, 2024
2 parents d71f16e + 64e330d commit c4178c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions contract-advanced-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ crate-type = ["cdylib", "rlib"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
near-sdk = "5.2.1"
near-sdk = "5.4.0"
schemars = "0.8.16"

[dev-dependencies]
near-sdk = { version = "5.2.1", features = ["unit-testing"] }
near-sdk = { version = "5.4.0", features = ["unit-testing"] }
near-workspaces = { version = "0.11.0", features = ["unstable"] }
tokio = { version = "1.39.2", features = ["full"] }
tokio = { version = "1.12.0", features = ["full"] }
serde_json = "1"

[profile.release]
Expand Down
6 changes: 3 additions & 3 deletions contract-advanced-rs/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::string::String;
use serde_json::json;
use near_workspaces::{types::NearToken, Account, Contract};
use near_sdk::serde::{Deserialize, Serialize};
use near_sdk::near;

#[tokio::test]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand Down Expand Up @@ -54,8 +54,8 @@ async fn test_multiple_contracts(
guest_book_contract: &Contract,
counter_contract: &Contract
) -> Result<(), Box<dyn std::error::Error>> {
#[derive(Deserialize, Serialize, Debug, PartialEq)]
#[serde(crate = "near_sdk::serde")]
#[derive(Debug, PartialEq)]
#[near(serializers = [json])]
pub struct PostedMessage {
pub premium: bool,
pub sender: String,
Expand Down
8 changes: 4 additions & 4 deletions contract-simple-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ crate-type = ["cdylib", "rlib"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
near-sdk = "5.2.1"
near-sdk = "5.4.0"

[dev-dependencies]
near-sdk = { version = "5.2.1", features = ["unit-testing"] }
near-sdk = { version = "5.4.0", features = ["unit-testing"] }
near-workspaces = { version = "0.11.0", features = ["unstable"] }
tokio = { version = "1.39.2", features = ["full"] }
serde_json = "1.0.122"
tokio = { version = "1.12.0", features = ["full"] }
serde_json = "1"

[profile.release]
codegen-units = 1
Expand Down

0 comments on commit c4178c3

Please sign in to comment.