Skip to content

Instantly share code, notes, and snippets.

@mhassanist
Created March 15, 2022 12:01
Show Gist options
  • Save mhassanist/4c8000bce2bf4684cb000a5960ebaf5a to your computer and use it in GitHub Desktop.
Save mhassanist/4c8000bce2bf4684cb000a5960ebaf5a to your computer and use it in GitHub Desktop.
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