Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemka374 committed Feb 2, 2023
1 parent f209379 commit 425f1f3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion contracts/src/traits/timelock_controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ impl Default for Transaction {
fn default() -> Self {
Self {
callee: ZERO_ADDRESS.into(),
..Default::default()
selector: Default::default(),
input: Default::default(),
transferred_value: Default::default(),
gas_limit: Default::default(),
}
}
}
Expand Down
1 change: 0 additions & 1 deletion contracts/src/upgradeability/diamond/diamond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pub use ownable::Internal as _;

use ink::{
env::call::{
DelegateCall,
ExecutionInput,
Selector as InkSelector,
},
Expand Down
2 changes: 0 additions & 2 deletions contracts/src/upgradeability/proxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ pub use crate::{
pub use ownable::Internal as _;
pub use proxy::Internal as _;

use ink::env::call::DelegateCall;
use openbrush::{
modifiers,
traits::{
Hash,
Storage,
StorageAsRef,
},
};

Expand Down
7 changes: 6 additions & 1 deletion example_project_structure/impls/lending/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ pub struct Data {
impl Default for Data {
fn default() -> Self {
Self {
assets_lended: Default::default(),
asset_shares: Default::default(),
shares_asset: Default::default(),
collateral_accepted: Default::default(),
asset_price: Default::default(),
shares_contract_code_hash: Hash::default(),
loan_account: [0u8; 32].into(),
..Default::default()
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion example_project_structure/traits/loan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ impl Default for LoanInfo {
Self {
borrower: [0u8; 32].into(),
collateral_token: [0u8; 32].into(),
collateral_amount: Balance::default(),
borrow_token: [0u8; 32].into(),
..Defalt::default()
borrow_amount: Balance::default(),
liquidation_price: Balance::default(),
timestamp: Timestamp::default(),
liquidated: false,
}
}
}
Expand Down

0 comments on commit 425f1f3

Please sign in to comment.