Skip to content

Commit

Permalink
Remove intermediate launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Oct 2, 2024
1 parent 1e90995 commit f4fdd0b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions napi/src/clvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,8 @@ impl ClvmAllocator {
parent_conditions: Vec::new(),
};

let len = nft_mints.len();

for (i, nft_mint) in nft_mints.into_iter().enumerate() {
let (conditions, nft) = sdk::IntermediateLauncher::new(parent_coin_id, i, len)
.create(&mut self.0)
.map_err(|error| Error::from_reason(error.to_string()))?
let (conditions, nft) = sdk::Launcher::new(parent_coin_id, i as u64 * 2 + 1)
.mint_nft(
&mut self.0,
sdk::NftMint::<nft::NftMetadata> {
Expand Down

0 comments on commit f4fdd0b

Please sign in to comment.