Skip to content

Commit

Permalink
feat(svm): l-06 Unnecessary Use of InitSpace Macro
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Jan 6, 2025
1 parent 1fbad5e commit ace1d34
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions programs/svm-spoke/src/state/instruction_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,27 @@ use anchor_lang::prelude::*;
use crate::{RelayerRefundLeaf, V3RelayData, V3SlowFill};

#[account]
#[derive(InitSpace)]
pub struct ExecuteRelayerRefundLeafParams {
pub root_bundle_id: u32, // ID of the root bundle to be used.
pub relayer_refund_leaf: RelayerRefundLeaf, // Leaf to be verified against the proof and instruct bundle execution.
#[max_len(0)]
pub proof: Vec<[u8; 32]>, // Proof to verify the leaf's inclusion in relayer refund merkle tree.
pub proof: Vec<[u8; 32]>, // Proof to verify the leaf's inclusion in relayer refund merkle tree.
}

#[account]
#[derive(InitSpace)]
pub struct FillV3RelayParams {
pub relay_data: V3RelayData,
pub repayment_chain_id: u64,
pub repayment_address: Pubkey,
}

#[account]
#[derive(InitSpace)]
pub struct RequestV3SlowFillParams {
pub relay_data: V3RelayData,
}

#[account]
#[derive(InitSpace)]
pub struct ExecuteV3SlowRelayLeafParams {
pub slow_fill_leaf: V3SlowFill,
pub root_bundle_id: u32,
#[max_len(0)]
pub proof: Vec<[u8; 32]>,
}

0 comments on commit ace1d34

Please sign in to comment.