Skip to content

Commit

Permalink
completed (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodrigo Pintos <rpintos@spacedev.io>
  • Loading branch information
RoPB and RoSpaceDev authored Sep 12, 2024
1 parent 67bc0e6 commit b0255bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/solana-hub/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub mod solana_hub {
return Ok(());
}

require!((nft_id as usize) < ctx.accounts.auction.nft_list.len(), ErrorCode::InvalidNftId);
require!((nft_id as usize) <= ctx.accounts.auction.nft_list.len(), ErrorCode::InvalidNftId);

let metadata = ctx.accounts.auction.nft_list.get(nft_id as usize-1);

Expand Down

0 comments on commit b0255bc

Please sign in to comment.