Skip to content

Commit

Permalink
TODOs of optimization opportunities
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 31, 2025
1 parent 9b28cda commit 6e3ad72
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ contract AppSubscription {
use router::utils::privately_check_block_number;
use token::Token;

// TODO: This can be optimized by storing the values in Config struct in 1 PublicImmutable (less merkle proofs).
#[storage]
struct Storage<Context> {
target_address: PublicImmutable<AztecAddress, Context>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ contract Claim {
use dep::uint_note::uint_note::UintNote;
use token::Token;

// TODO: This can be optimized by storing the addresses in Config struct in 1 PublicImmutable (less merkle proofs).
#[storage]
struct Storage<Context> {
// Address of a contract based on whose notes we distribute the rewards
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ contract Crowdfunding {
amount: U128,
}

// TODO: This can be optimized by storing the values in Config struct in 1 PublicImmutable (less merkle proofs).
// docs:start:storage
#[storage]
struct Storage<Context> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ contract TokenBridge {
};
// docs:end:token_bridge_imports

// TODO: This can be optimized by storing the values in Config struct in 1 PublicImmutable (less merkle proofs).
// docs:start:token_bridge_storage_and_constructor
// Storage structure, containing all storage, and specifying what slots they use.
#[storage]
Expand Down

0 comments on commit 6e3ad72

Please sign in to comment.