git.delta.rocks / unique-network / refs/commits / 7994dd0dea2f

difftreelog

fix convert address in chain extensions

Yaroslav Bolyukin2021-05-04parent: #e5bc882.patch.diff
in: master

1 file changed

modifiedruntime/src/chain_extension.rsdiffbeforeafterboth
63 let collection = pallet_nft::Module::<Runtime>::get_collection(input.collection_id)?;63 let collection = pallet_nft::Module::<Runtime>::get_collection(input.collection_id)?;
6464
65 match pallet_nft::Module::<Runtime>::transfer_internal(sender, recipient, &collection, input.token_id, input.amount) {65 match pallet_nft::Module::<Runtime>::transfer_internal(
66 <Runtime as Config>::CrossAccountId::from_sub(sender),
67 <Runtime as Config>::CrossAccountId::from_sub(recipient),
68 &collection,
69 input.token_id,
70 input.amount,
71 ) {
66 Ok(_) => Ok(RetVal::Converging(func_id)),72 Ok(_) => Ok(RetVal::Converging(func_id)),
67 _ => Err(DispatchError::Other("Transfer error"))73 _ => Err(DispatchError::Other("Transfer error"))