#[storage(read)]
fn get_buyers(listing_id: u64) -> Vec<Buyer> {
let mut buyers = Vec::new();
if let storage_vec_key = storage.buyers.get(listing_id) {
let len = storage_vec_key.len();
let mut i = 0;
while i < len {
if let Some(storage_key) = storage_vec_key.get(i) {
buyers.push(storage_key.read());
}
i += 1;
}
}
buyers
}
The Error I am getting
thread 'main' panicked at sway-core/src/asm_generation/fuel/functions.rs:121:30:
Too many arguments, cannot handle.: Immediate12TooLarge { val: 4467, span: Span { src (ptr): 0x11e009b90, source_id: None, start: 0, end: 0, as_str(): "" } }
Hey @DevilAsap, can you please update the toolchain to the latest and see if the issue still persists? please make sure the forc version is 0.64.0 and fuel-core 0.36.0
Hey @DevilAsap Thanks for confirming. will make sure the team looks into it. Also, just for reference can you have a look at here and try the solution mentioned in there
Our issue I think stems from the following contract change. We’re basically just trying to be able to return a Configurable Constant as we could not find any definition if that is possible or not. @Nazeeh21 could you enlighten me?