You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to mint a token which has an accepted asset is through multiple methods. This is due to the fact only the token owner can add an asset without it being in pending state. This is problematic especially when minting via cross-contract calls.
The current workaround:
let to:AccountId = ...let id = 1;Minting::mint(self, id,self.env().caller())?;MultiAsset::add_asset_to_token(self, id, asset_id,None)?;PSP34::transfer(self, to, id,Default::default())?;
Will edit with possible solutions
The text was updated successfully, but these errors were encountered:
Currently the only way to mint a token which has an accepted asset is through multiple methods. This is due to the fact only the token owner can add an asset without it being in
pending
state. This is problematic especially when minting via cross-contract calls.The current workaround:
Will edit with possible solutions
The text was updated successfully, but these errors were encountered: