Skip to content

Commit

Permalink
fix(lockup): get rid of utils.rs
Browse files Browse the repository at this point in the history
Fix comments in utils.rs from https://hackmd.io/@ailisp/rJbiDYr5_
All these functions were already implemented in near-sdk-rs
  • Loading branch information
telezhnaya committed Jul 5, 2021
1 parent 7d3f1cd commit 0d0411d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 21 deletions.
Binary file modified lockup/res/lockup_contract.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion lockup/src/foundation_callbacks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::*;
use near_sdk::{near_bindgen, PromiseOrValue};
use near_sdk::{near_bindgen, PromiseOrValue, assert_self, is_promise_success};
use std::convert::Into;

#[near_bindgen]
Expand Down
2 changes: 0 additions & 2 deletions lockup/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ pub use crate::internal::*;
pub use crate::owner::*;
pub use crate::owner_callbacks::*;
pub use crate::types::*;
pub use crate::utils::*;

pub mod foundation;
pub mod foundation_callbacks;
pub mod gas;
pub mod owner_callbacks;
pub mod types;
pub mod utils;

pub mod getters;
pub mod internal;
Expand Down
2 changes: 1 addition & 1 deletion lockup/src/owner_callbacks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::*;
use near_sdk::{near_bindgen, PromiseOrValue};
use near_sdk::{near_bindgen, PromiseOrValue, assert_self, is_promise_success};

#[near_bindgen]
impl LockupContract {
Expand Down
17 changes: 0 additions & 17 deletions lockup/src/utils.rs

This file was deleted.

0 comments on commit 0d0411d

Please sign in to comment.