Created
March 15, 2022 12:01
-
-
Save mhassanist/4c8000bce2bf4684cb000a5960ebaf5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize}; | |
use near_sdk::collections::Vector; | |
use near_sdk::near_bindgen; | |
struct Writing { | |
pub text: String, | |
pub sender: String, | |
pub receiver: String, | |
} | |
near_sdk::setup_alloc!(); | |
#[near_bindgen] | |
#[derive(BorshDeserialize, BorshSerialize)] | |
pub struct Contract { | |
pub writing_list: Vec<Writing>, //This line gives err | |
} | |
#[near_bindgen] | |
impl Contract {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment