10, "All editions have to be minted before distribution can start!" ); let distribution_sc_address = self.distribution_sc_address().get(); let collection_id = self.collection_id().get(); let nft_amount = BigUint::from(NFT_AMOUNT); let mut nft_payment = ManagedVec::new(); let preceeding_cards = (CARDS_PER_EDITION * (edition_to_distribute_mapper.get() - 1)) as u64; for i in 1..72 { let esdt_payment = EsdtTokenPayment::new( collection_id.clone(), i + preceeding_cards, nft_amount.clone(), ); nft_payment.push(esdt_payment); } self.distribution_contract_proxy(distribution_sc_address) .distribute_edition() .with_multi_token_transfer(nft_payment) .transfer_execute(); } Unfortunately I get the following error in the elrond explorer and I have no idea what could be wrong -> https://devnet-explorer.elrond.com/transactions/7a0ac35a4c57d688db8bea2d1b2fc4e18d8c06e989dafb56d298213c1320a0c7 Do you have any ideas? - ElrondDevelopers"/> 10, "All editions have to be minted before distribution can start!" ); let distribution_sc_address = self.distribution_sc_address().get(); let collection_id = self.collection_id().get(); let nft_amount = BigUint::from(NFT_AMOUNT); let mut nft_payment = ManagedVec::new(); let preceeding_cards = (CARDS_PER_EDITION * (edition_to_distribute_mapper.get() - 1)) as u64; for i in 1..72 { let esdt_payment = EsdtTokenPayment::new( collection_id.clone(), i + preceeding_cards, nft_amount.clone(), ); nft_payment.push(esdt_payment); } self.distribution_contract_proxy(distribution_sc_address) .distribute_edition() .with_multi_token_transfer(nft_payment) .transfer_execute(); } Unfortunately I get the following error in the elrond explorer and I have no idea what could be wrong -> https://devnet-explorer.elrond.com/transactions/7a0ac35a4c57d688db8bea2d1b2fc4e18d8c06e989dafb56d298213c1320a0c7 Do you have any ideas? - ElrondDevelopers"/> 10, "All editions have to be minted before distribution can start!" ); let distribution_sc_address = self.distribution_sc_address().get(); let collection_id = self.collection_id().get(); let nft_amount = BigUint::from(NFT_AMOUNT); let mut nft_payment = ManagedVec::new(); let preceeding_cards = (CARDS_PER_EDITION * (edition_to_distribute_mapper.get() - 1)) as u64; for i in 1..72 { let esdt_payment = EsdtTokenPayment::new( collection_id.clone(), i + preceeding_cards, nft_amount.clone(), ); nft_payment.push(esdt_payment); } self.distribution_contract_proxy(distribution_sc_address) .distribute_edition() .with_multi_token_transfer(nft_payment) .transfer_execute(); } Unfortunately I get the following error in the elrond explorer and I have no idea what could be wrong -> https://devnet-explorer.elrond.com/transactions/7a0ac35a4c57d688db8bea2d1b2fc4e18d8c06e989dafb56d298213c1320a0c7 Do you have any ideas? - ElrondDevelopers"/> 10, "All editions have to be minted before distribution can start!" ); let distribution_sc_address = self.distribution_sc_address().get(); let collection_id = self.collection_id().get(); let nft_amount = BigUint::from(NFT_AMOUNT); let mut nft_payment = ManagedVec::new(); let preceeding_cards = (CARDS_PER_EDITION * (edition_to_distribute_mapper.get() - 1)) as u64; for i in 1..72 { let esdt_payment = EsdtTokenPayment::new( collection_id.clone(), i + preceeding_cards, nft_amount.clone(), ); nft_payment.push(esdt_payment); } self.distribution_contract_proxy(distribution_sc_address) .distribute_edition() .with_multi_token_transfer(nft_payment) .transfer_execute(); } Unfortunately I get the following error in the elrond explorer and I have no idea what could be wrong -> https://devnet-explorer.elrond.com/transactions/7a0ac35a4c57d688db8bea2d1b2fc4e18d8c06e989dafb56d298213c1320a0c7 Do you have any ideas? - ElrondDevelopers"/>

Hello,

Sign up to join our community!

Welcome Back,

Please login to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Hi Guys, I am trying to execute this function which should basically call another smart contract #[only_owner] #[endpoint(distributeEdition)] fn distribute_edition(&self) { let edition_to_distribute_mapper = self.edition_to_distribute(); if edition_to_distribute_mapper.is_empty() { self.edition_to_distribute().set(2); } require!( edition_to_distribute_mapper.get() <= 10, "There are only 10 editions within the collection!" ); require!( self.edition_to_mint().get() > 10, "All editions have to be minted before distribution can start!" ); let distribution_sc_address = self.distribution_sc_address().get(); let collection_id = self.collection_id().get(); let nft_amount = BigUint::from(NFT_AMOUNT); let mut nft_payment = ManagedVec::new(); let preceeding_cards = (CARDS_PER_EDITION * (edition_to_distribute_mapper.get() - 1)) as u64; for i in 1..72 { let esdt_payment = EsdtTokenPayment::new( collection_id.clone(), i + preceeding_cards, nft_amount.clone(), ); nft_payment.push(esdt_payment); } self.distribution_contract_proxy(distribution_sc_address) .distribute_edition() .with_multi_token_transfer(nft_payment) .transfer_execute(); } Unfortunately I get the following error in the elrond explorer and I have no idea what could be wrong -> https://devnet-explorer.elrond.com/transactions/7a0ac35a4c57d688db8bea2d1b2fc4e18d8c06e989dafb56d298213c1320a0c7 Do you have any ideas?