Posted on c/ElrondDevelopers 1 bog8304552146c/ElrondDevelopers 2 years ago For storage SingleValueMapper how do you check that this value exists so you do not override it my mistake? Comment 1 Comments bog8304552146 2years ago I see this trick on nft-miter on a u64 field. require!( !self.price_tag(nft_nonce).is_empty(), "Invalid nonce or NFT was already sold" ); I guess that is good enough ????
I see this trick on nft-miter on a u64 field. require!( !self.price_tag(nft_nonce).is_empty(), "Invalid nonce or NFT was already sold" ); I guess that is good enough ????