git.delta.rocks / unique-network / refs/commits / 0b721357bf73

difftreelog

fix perform transfers on behalf of current contract

Yaroslav Bolyukin2021-06-04parent: #ead48f3.patch.diff
in: master

1 file changed

modifiedruntime/src/chain_extension.rsdiffbeforeafterboth
96 let collection = pallet_nft::Module::<C>::get_collection(input.collection_id)?;96 let collection = pallet_nft::Module::<C>::get_collection(input.collection_id)?;
9797
98 pallet_nft::Module::<C>::transfer_internal(98 pallet_nft::Module::<C>::transfer_internal(
99 env.ext().caller().clone(),99 env.ext().address().clone(),
100 input.recipient,100 input.recipient,
101 &collection,101 &collection,
102 input.token_id,102 input.token_id,