Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbrs committed Apr 17, 2024
1 parent 1fa4c86 commit 72ada14
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 212 deletions.
8 changes: 4 additions & 4 deletions src/components/minter/mint.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ mod MintComponent {

// [Interaction] Comput the amount of cc for each vintage
let project_address = self.Mint_carbonable_project_address.read();
let absorber = IAbsorberDispatcher {
contract_address: project_address
};
let absorber = IAbsorberDispatcher { contract_address: project_address };
let carbon_credits = ICarbonCreditsHandlerDispatcher {
contract_address: project_address
};
Expand Down Expand Up @@ -281,7 +279,9 @@ mod MintComponent {
.emit(
Event::Buy(
Buy {
address: caller_address, cc_years_vintages: cc_years_vintages, cc_distributed: cc_distribution
address: caller_address,
cc_years_vintages: cc_years_vintages,
cc_distributed: cc_distribution
}
)
);
Expand Down
3 changes: 2 additions & 1 deletion src/contracts/project.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ mod Project {
#[abi(embed_v0)]
impl AbsorberImpl = AbsorberComponent::AbsorberImpl<ContractState>;
#[abi(embed_v0)]
impl CarbonCreditsHandlerImpl = AbsorberComponent::CarbonCreditsHandlerImpl<ContractState>;
impl CarbonCreditsHandlerImpl =
AbsorberComponent::CarbonCreditsHandlerImpl<ContractState>;
#[abi(embed_v0)]
impl SRC5Impl = SRC5Component::SRC5Impl<ContractState>;

Expand Down
Loading

0 comments on commit 72ada14

Please sign in to comment.