Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/gov/governance.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use starknet::ContractAddress;

#[starknet::interface]
pub trait IGovernanceWrap<TContractState> {
fn initializer(ref self: TContractState);
Expand All @@ -13,8 +11,6 @@ pub mod GovernanceWrapComponent {
use openzeppelin_governance::governor::{DefaultConfig, GovernorComponent};
use openzeppelin_introspection::src5::SRC5Component;
use openzeppelin_introspection::src5::SRC5Component::InternalImpl as SRC5InternalImpl;
use starknet::ContractAddress;

#[storage]
pub struct Storage {}

Expand Down
2 changes: 1 addition & 1 deletion src/guild/guild.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub mod Guild {
DistributionPolicy, EpochSnapshot, Member, PendingInvite, PluginConfig, RedemptionWindow,
Role, ShareOffer,
};
use starknet::{ContractAddress, get_caller_address};
use starknet::ContractAddress;
use starknet::storage::{
StorageMapReadAccess, StoragePointerReadAccess, StoragePointerWriteAccess,
};
Expand Down
2 changes: 0 additions & 2 deletions src/mocks/guild.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use starknet::ContractAddress;

/// Minimal mock contract for testing the v0.2 GuildComponent.
/// Only embeds the GuildComponent — no ERC20 or Governor.
#[starknet::contract]
Expand Down
4 changes: 2 additions & 2 deletions src/token/guild_token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ pub mod GuildToken {
contract.inactive_balance.write(0);
}
}
if recipient != Zero::zero() && contract.inactivity_flags.read(recipient).flagged_at > 0
{
if recipient != Zero::zero()
&& contract.inactivity_flags.read(recipient).flagged_at > 0 {
contract.inactive_balance.write(contract.inactive_balance.read() + amount);
}

Expand Down