--- a/runtime/src/chain_extension.rs +++ b/runtime/src/chain_extension.rs @@ -62,7 +62,13 @@ let collection = pallet_nft::Module::::get_collection(input.collection_id)?; - match pallet_nft::Module::::transfer_internal(sender, recipient, &collection, input.token_id, input.amount) { + match pallet_nft::Module::::transfer_internal( + ::CrossAccountId::from_sub(sender), + ::CrossAccountId::from_sub(recipient), + &collection, + input.token_id, + input.amount, + ) { Ok(_) => Ok(RetVal::Converging(func_id)), _ => Err(DispatchError::Other("Transfer error")) }