MultiversX Tracker is Live!

How to swap tokens from one smart contract to another atomically?

Etherum Reddit

More / Etherum Reddit 84 Views

Hi,

So I have three ERC1155 contracts, one for NFTs, one for NFT accessories one for "decorated" NFTs. I want to provide the option to burn one NFT and one accessory for a decorated NFT, what is the best way to go about this?

I thought about just white listing the contract and checking msg.sender and then just perform the burn and mint in the same contract but I'm looking for the community's opinion. Are cases like this solved via existing code or does anyone have some examples?

submitted by /u/hl3mukkel
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments